Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.494/2.494, allocations: 393.5 MB / 408.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002144/0.002145, allocations: 175.1 kB / 0.4902 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.691/1.691, allocations: 223.1 MB / 0.7992 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009837/0.0009837, allocations: 105.6 kB / 0.9396 GB, free: 1.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003737, allocations: 7.188 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2941, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1965/0.4907, allocations: 158.4 MB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4909, allocations: 79.95 kB / 1.384 GB, free: 11.06 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.05189/0.5428, allocations: 19.87 MB / 1.403 GB, free: 7.148 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.385e-06/0.5429, allocations: 0 / 1.403 GB, free: 7.148 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 9.073e-05/0.543, allocations: 28.12 kB / 1.403 GB, free: 7.121 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002553/0.5455, allocations: 1.249 MB / 1.405 GB, free: 5.816 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.5456, allocations: 12.52 kB / 1.405 GB, free: 5.805 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/0.5458, allocations: 126.5 kB / 1.405 GB, free: 5.68 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.5471, allocations: 0.7268 MB / 1.405 GB, free: 4.91 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.5472, allocations: 87.69 kB / 1.406 GB, free: 4.82 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.5473, allocations: 71.95 kB / 1.406 GB, free: 4.75 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.5487, allocations: 0.7744 MB / 1.406 GB, free: 3.93 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.5487, allocations: 3.938 kB / 1.406 GB, free: 3.926 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.052e-05/0.5488, allocations: 32 kB / 1.406 GB, free: 3.895 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.5488, allocations: 16 kB / 1.406 GB, free: 3.879 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.5499, allocations: 0.5595 MB / 1.407 GB, free: 3.32 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.5533, allocations: 2.349 MB / 1.409 GB, free: 0.8945 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.5548, allocations: 0.7086 MB / 1.41 GB, free: 180 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.292e-05/0.5549, allocations: 16.53 kB / 1.41 GB, free: 164 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007232/0.5556, allocations: 347 kB / 1.41 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=60): time 2.686e-06/0.5556, allocations: 0 / 1.41 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of matching and sorting (n=60): time 0.001658/0.5573, allocations: 0.8261 MB / 1.411 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.5574, allocations: 141.1 kB / 1.411 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007769/0.5582, allocations: 0.6532 MB / 1.412 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.067e-05/0.5582, allocations: 37.7 kB / 1.412 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.5586, allocations: 436.5 kB / 1.412 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.5587, allocations: 212.9 kB / 1.413 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.903e-05/0.5588, allocations: 8 kB / 1.413 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.5589, allocations: 334 kB / 1.413 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004606/0.5594, allocations: 217.2 kB / 1.413 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005473/0.5599, allocations: 350.1 kB / 1.413 GB, free: 12.52 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.5604, allocations: 250.1 kB / 1.414 GB, free: 12.28 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.5604, allocations: 0 / 1.414 GB, free: 12.28 MB / 0.9167 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001214/0.5617, allocations: 0.701 MB / 1.414 GB, free: 11.57 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003382/0.562, allocations: 0.8753 MB / 1.415 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.547e-06/0.562, allocations: 4 kB / 1.415 GB, free: 10.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.562, allocations: 7.953 kB / 1.415 GB, free: 10.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008318/0.5629, allocations: 159.8 kB / 1.415 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.5629, allocations: 12 kB / 1.415 GB, free: 10.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004988/0.5634, allocations: 75.5 kB / 1.415 GB, free: 10.38 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.5635, allocations: 27.98 kB / 1.415 GB, free: 10.35 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.5635, allocations: 4 kB / 1.415 GB, free: 10.34 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001015/0.5645, allocations: 0.5598 MB / 1.416 GB, free: 9.785 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.5645, allocations: 4.062 kB / 1.416 GB, free: 9.781 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.184e-06/0.5645, allocations: 4 kB / 1.416 GB, free: 9.777 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007432/0.5653, allocations: 155.8 kB / 1.416 GB, free: 9.625 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.5653, allocations: 11.94 kB / 1.416 GB, free: 9.613 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004698/0.5658, allocations: 75.41 kB / 1.416 GB, free: 9.539 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.5658, allocations: 20 kB / 1.416 GB, free: 9.52 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.trigger.pulseStart,trigger.pulseStart,limPIDInp.trigger,limPIDOri.I.local_reset,limPIDDef.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003737/0.5662, allocations: 301.8 kB / 1.417 GB, free: 9.215 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.5663, allocations: 98.86 kB / 1.417 GB, free: 9.117 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.5665, allocations: 101.2 kB / 1.417 GB, free: 9.02 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.5665, allocations: 4 kB / 1.417 GB, free: 9.016 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.5666, allocations: 4 kB / 1.417 GB, free: 9.012 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.5666, allocations: 7.984 kB / 1.417 GB, free: 9.004 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.5688, allocations: 1.528 MB / 1.418 GB, free: 7.414 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.5688, allocations: 0 / 1.418 GB, free: 7.414 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005753/0.5694, allocations: 115.9 kB / 1.418 GB, free: 7.301 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.5694, allocations: 0 / 1.418 GB, free: 7.301 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.121e-05/0.5694, allocations: 12 kB / 1.418 GB, free: 7.289 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.5695, allocations: 4 kB / 1.418 GB, free: 7.285 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5695, allocations: 3.938 kB / 1.418 GB, free: 7.281 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.5712, allocations: 1.045 MB / 1.419 GB, free: 6.223 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002814/0.5715, allocations: 231.7 kB / 1.42 GB, free: 5.977 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.721e-05/0.5716, allocations: 12 kB / 1.42 GB, free: 5.965 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005036/0.5721, allocations: 51.95 kB / 1.42 GB, free: 5.914 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.102e-05/0.5722, allocations: 36.5 kB / 1.42 GB, free: 5.879 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.5722, allocations: 16 kB / 1.42 GB, free: 5.863 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0006144/0.5728, allocations: 0.5185 MB / 1.42 GB, free: 5.348 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5729, allocations: 0 / 1.42 GB, free: 5.348 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0007397/0.5736, allocations: 284.9 kB / 1.42 GB, free: 5.07 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPIDPar.I.y,limPIDPar.D.x,limPIDDef.I.y,limPIDDef.D.x,limPIDInp.I.y,limPIDInp.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 4 (limPIDInp.trigger,$whenCondition2,$whenCondition1,trigger.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001926/0.5738, allocations: 127.9 kB / 1.421 GB, free: 4.938 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001648/0.5755, allocations: 0.8666 MB / 1.421 GB, free: 4.07 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5755, allocations: 0 / 1.421 GB, free: 4.07 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005207/0.576, allocations: 295.1 kB / 1.422 GB, free: 3.785 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000965/0.577, allocations: 230 kB / 1.422 GB, free: 3.559 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.5798, allocations: 1.819 MB / 1.424 GB, free: 1.703 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005117/0.5803, allocations: 1.01 MB / 1.425 GB, free: 0.668 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0005214/0.5808, allocations: 118.3 kB / 1.425 GB, free: 0.5508 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.581, allocations: 59.42 kB / 1.425 GB, free: 0.4922 MB / 0.9167 GB Notification: Performance of SimCode: time 4.81e-07/0.581, allocations: 4 kB / 1.425 GB, free: 500 kB / 0.9167 GB Notification: Performance of Templates: time 0.5981/1.179, allocations: 9.099 MB / 1.434 GB, free: 180.4 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_LimPIDReset.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches