Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.condition|transition2.condition|actMod",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.condition|transition2.condition|actMod",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.429/2.429, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.00113/0.00113, allocations: 180.3 kB / 498.1 MB, free: 5.672 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.578/1.578, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.0009068/0.0009068, allocations: 102.8 kB / 0.9346 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0003999, allocations: 10 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3573, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2124/0.5697, allocations: 157.2 MB / 1.376 GB, free: 4.828 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.57, allocations: 87.95 kB / 1.376 GB, free: 4.742 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04427/0.6143, allocations: 17.61 MB / 1.394 GB, free: 2.969 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6144, allocations: 3.938 kB / 1.394 GB, free: 2.965 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.312e-05/0.6145, allocations: 19.98 kB / 1.394 GB, free: 2.945 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001566/0.616, allocations: 1.026 MB / 1.395 GB, free: 1.852 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.6161, allocations: 8.031 kB / 1.395 GB, free: 1.844 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.6162, allocations: 94.88 kB / 1.395 GB, free: 1.75 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008398/0.6171, allocations: 0.5004 MB / 1.395 GB, free: 1.207 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.925e-05/0.6172, allocations: 66.7 kB / 1.395 GB, free: 1.137 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.6173, allocations: 59.94 kB / 1.395 GB, free: 1.078 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008552/0.6181, allocations: 0.5424 MB / 1.396 GB, free: 500 kB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.6182, allocations: 0 / 1.396 GB, free: 500 kB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.812e-05/0.6182, allocations: 20 kB / 1.396 GB, free: 480 kB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.6182, allocations: 15.94 kB / 1.396 GB, free: 464 kB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005997/0.6188, allocations: 347.7 kB / 1.396 GB, free: 120 kB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.6212, allocations: 1.944 MB / 1.398 GB, free: 14.08 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006011/0.6218, allocations: 348.8 kB / 1.398 GB, free: 13.7 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.6218, allocations: 8.062 kB / 1.399 GB, free: 13.69 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/0.6223, allocations: 262.4 kB / 1.399 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=44): time 1.934e-06/0.6223, allocations: 0 / 1.399 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of matching and sorting (n=44): time 0.0009671/0.6232, allocations: 0.4962 MB / 1.399 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.6234, allocations: 203.8 kB / 1.399 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007971/0.6242, allocations: 0.6712 MB / 1.4 GB, free: 11.99 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.774e-05/0.6242, allocations: 49.69 kB / 1.4 GB, free: 11.93 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.6245, allocations: 372.8 kB / 1.4 GB, free: 11.57 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.6247, allocations: 118.5 kB / 1.401 GB, free: 11.45 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.6247, allocations: 8 kB / 1.401 GB, free: 11.44 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.6248, allocations: 338.1 kB / 1.401 GB, free: 11.11 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.6251, allocations: 133.2 kB / 1.401 GB, free: 10.98 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003845/0.6255, allocations: 310.7 kB / 1.401 GB, free: 10.6 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.6258, allocations: 144.7 kB / 1.401 GB, free: 10.46 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.6258, allocations: 4 kB / 1.402 GB, free: 10.46 MB / 0.9011 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008577/0.6267, allocations: 0.5148 MB / 1.402 GB, free: 9.938 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.6267, allocations: 4.062 kB / 1.402 GB, free: 9.934 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.6267, allocations: 8 kB / 1.402 GB, free: 9.926 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.6267, allocations: 8 kB / 1.402 GB, free: 9.918 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.627, allocations: 71.84 kB / 1.402 GB, free: 9.848 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.627, allocations: 15.91 kB / 1.402 GB, free: 9.832 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.6273, allocations: 59.69 kB / 1.402 GB, free: 9.773 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.6273, allocations: 24 kB / 1.402 GB, free: 9.75 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$PRE.transition1.t_start,transition1.t_start,$PRE.transition2.t_start,transition2.t_start,$whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.avaSig.combiTimeTable.nextTimeEvent,$PRE.transition4.t_start,transition4.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition3,actMod,transition1.enableFire,transition1.condition,transition2.enableFire,transition2.condition,$PRE.staBy.localActive,staBy.localActive,staBy.outPort[2].available,$PRE.staBy.newActive,staBy.newActive,$PRE.staBy.oldActive,staBy.oldActive,staBy.active,$PRE.pumOn.localActive,pumOn.localActive,$PRE.pumOn.newActive,pumOn.newActive,$PRE.pumOn.oldActive,pumOn.oldActive,pumOn.active,avaSig.combiTimeTable.nextTimeEvent,$PRE.avaSig.combiTimeTable.nextTimeEventScaled,avaSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled,$PRE.off.localActive,off.localActive,off.inPort[2].occupied,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,stateGraphRoot.activeSteps,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,transition4.enableFire,cheMinFlo.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.0003522/0.6277, allocations: 281.8 kB / 1.402 GB, free: 9.469 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.6278, allocations: 75.06 kB / 1.403 GB, free: 9.395 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007591/0.6286, allocations: 439.5 kB / 1.403 GB, free: 8.953 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.6286, allocations: 8 kB / 1.403 GB, free: 8.945 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.6286, allocations: 7.875 kB / 1.403 GB, free: 8.938 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.6286, allocations: 11.98 kB / 1.403 GB, free: 8.926 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.6303, allocations: 1.108 MB / 1.404 GB, free: 7.758 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.6303, allocations: 3.984 kB / 1.404 GB, free: 7.754 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.6304, allocations: 31.92 kB / 1.404 GB, free: 7.723 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.6304, allocations: 4 kB / 1.404 GB, free: 7.719 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.6305, allocations: 16 kB / 1.404 GB, free: 7.703 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.6305, allocations: 11.94 kB / 1.404 GB, free: 7.691 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6305, allocations: 0 / 1.404 GB, free: 7.691 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007617/0.6313, allocations: 0.57 MB / 1.405 GB, free: 7.078 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.6315, allocations: 164.1 kB / 1.405 GB, free: 6.898 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.735e-05/0.6316, allocations: 12 kB / 1.405 GB, free: 6.887 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.6318, allocations: 27.92 kB / 1.405 GB, free: 6.859 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.6319, allocations: 48.36 kB / 1.405 GB, free: 6.812 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.6319, allocations: 19.98 kB / 1.405 GB, free: 6.793 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0006011/0.6325, allocations: 0.5029 MB / 1.405 GB, free: 6.293 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6326, allocations: 0 / 1.405 GB, free: 6.293 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005828/0.6331, allocations: 139.9 kB / 1.406 GB, free: 6.156 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 39 (transition4.t_start,transition3.enableFire,off.active,pumOn.localActive,staBy.localActive,$cse1,$cse2,$cse5,$cse6,$cse7,$whenCondition3,$whenCondition2,$whenCondition1,actMod,transition1.enableFire,transition1.condition,transition2.enableFire,transition2.condition,staBy.outPort[2].available,staBy.newActive,staBy.oldActive,staBy.active,pumOn.newActive,pumOn.oldActive,pumOn.active,avaSig.combiTimeTable.nextTimeEvent,avaSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,off.localActive,off.inPort[2].occupied,off.newActive,off.oldActive,stateGraphRoot.activeSteps,transition3.fire,transition3.t_start,transition4.enableFire,transition2.t_start,transition1.t_start) * Number of discrete states: 10 (transition1.t_start,transition2.t_start,runSig.combiTimeTable.nextTimeEvent,avaSig.combiTimeTable.nextTimeEvent,staBy.newActive,pumOn.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled,avaSig.combiTimeTable.nextTimeEventScaled,transition4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.001177/0.6343, allocations: 490 kB / 1.406 GB, free: 5.824 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0007609/0.6351, allocations: 397.7 kB / 1.406 GB, free: 5.434 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6351, allocations: 0 / 1.406 GB, free: 5.434 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003229/0.6354, allocations: 198.5 kB / 1.407 GB, free: 5.242 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005759/0.636, allocations: 118.8 kB / 1.407 GB, free: 5.129 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.638, allocations: 1.42 MB / 1.408 GB, free: 3.668 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006535/0.6387, allocations: 0.9799 MB / 1.409 GB, free: 2.66 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002995/0.639, allocations: 100.8 kB / 1.409 GB, free: 2.562 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.6392, allocations: 55.42 kB / 1.409 GB, free: 2.508 MB / 0.9011 GB Notification: Performance of SimCode: time 3.6e-07/0.6392, allocations: 0 / 1.409 GB, free: 2.508 MB / 0.9011 GB Notification: Performance of Templates: time 0.01409/0.6533, allocations: 6.884 MB / 1.416 GB, free: 11.68 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_StandBy.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.StandBy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches