Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00627/0.006276, allocations: 99.44 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 193.3 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.554/2.554, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001277, allocations: 63 kB / 0.9508 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3583, allocations: 140.4 MB / 1.088 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002004/0.3603, allocations: 0.7484 MB / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3619, allocations: 1.168 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.694e-05/0.362, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.255e-05/0.3621, allocations: 15.8 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.478e-05/0.3621, allocations: 3.938 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.3627, allocations: 134.1 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.3629, allocations: 131.8 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.363, allocations: 24.12 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.778e-05/0.3631, allocations: 51.84 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3632, allocations: 55.8 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3632, allocations: 11.94 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.375e-05/0.3633, allocations: 27.98 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.481e-05/0.3634, allocations: 15.98 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.288e-05/0.3634, allocations: 47.78 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.3636, allocations: 119.6 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3636, allocations: 0 / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3636, allocations: 0 / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.3637, allocations: 4 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006132/0.3643, allocations: 416.9 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.3643, allocations: 12.03 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.666e-05/0.3644, allocations: 12.89 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.3645, allocations: 176.2 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.3645, allocations: 4.375 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.3646, allocations: 8.375 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.3648, allocations: 78.2 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3648, allocations: 7.938 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.3648, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3648, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.365, allocations: 47.89 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.3655, allocations: 340.6 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.3657, allocations: 70.58 kB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.3658, allocations: 28.95 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3658, allocations: 4 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002341/0.3661, allocations: 91.34 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.3661, allocations: 4 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004396/0.3665, allocations: 145.5 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.3666, allocations: 59.39 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.3667, allocations: 117.8 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.3667, allocations: 25.7 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.657e-05/0.3668, allocations: 100 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.3668, allocations: 27.83 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.976e-05/0.3669, allocations: 37.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.367, allocations: 326.8 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.3672, allocations: 43.97 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.3674, allocations: 89.11 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.3677, allocations: 150.7 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3677, allocations: 4 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004229/0.3681, allocations: 215.1 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.3681, allocations: 37.7 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3682, allocations: 4 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3682, allocations: 0 / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3683, allocations: 15.98 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3683, allocations: 160 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.3685, allocations: 47.84 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.3686, allocations: 12 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.3687, allocations: 134.3 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.3687, allocations: 7.953 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003074/0.369, allocations: 122 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.369, allocations: 7.984 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.369, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.369, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004377/0.3695, allocations: 378.8 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3695, allocations: 0 / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.268e-05/0.3695, allocations: 11.98 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3696, allocations: 0 / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.3696, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3696, allocations: 0 / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3696, allocations: 3.938 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.3699, allocations: 219.5 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.37, allocations: 85.05 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.37, allocations: 0 / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-05/0.3701, allocations: 12 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.3701, allocations: 15.86 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.3701, allocations: 4 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.117e-05/0.3702, allocations: 91.27 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3702, allocations: 0 / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002559/0.3705, allocations: 27.94 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001592/0.3706, allocations: 107.2 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004159/0.3711, allocations: 183.2 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3711, allocations: 4 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3712, allocations: 43.91 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.3715, allocations: 8 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.3719, allocations: 169.9 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.3722, allocations: 0.6938 MB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.527e-05/0.3722, allocations: 4 kB / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.3723, allocations: 11.44 kB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of SimCode: time 1.9e-07/0.3723, allocations: 0 / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of Templates: time 0.004185/0.3765, allocations: 1.441 MB / 1.097 GB, free: 8.145 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches