Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.38/2.38, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001995/0.001995, allocations: 179.9 kB / 0.4901 GB, free: 2.266 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.619/1.619, allocations: 223.1 MB / 0.7992 GB, free: 14.67 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.0009986/0.0009984, allocations: 115.7 kB / 0.9396 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004212/0.0004214, allocations: 10.41 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3443, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2149/0.5593, allocations: 156.8 MB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003559/0.5597, allocations: 95.95 kB / 1.382 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03949/0.5992, allocations: 14.16 MB / 1.396 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.204e-06/0.5993, allocations: 0 / 1.396 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.153e-05/0.5994, allocations: 8 kB / 1.396 GB, free: 14.23 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001643/0.601, allocations: 0.8147 MB / 1.397 GB, free: 13.35 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.6011, allocations: 12.56 kB / 1.397 GB, free: 13.34 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.236e-05/0.6012, allocations: 42.55 kB / 1.397 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.6014, allocations: 67.14 kB / 1.397 GB, free: 13.22 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009189/0.6023, allocations: 424 kB / 1.398 GB, free: 12.76 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.6023, allocations: 24.17 kB / 1.398 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.6024, allocations: 8 kB / 1.398 GB, free: 12.73 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.6027, allocations: 149.7 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.6027, allocations: 0 / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.6028, allocations: 4 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.6028, allocations: 4 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.603, allocations: 70.58 kB / 1.398 GB, free: 12.5 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.6042, allocations: 0.6066 MB / 1.398 GB, free: 11.84 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.6046, allocations: 134.6 kB / 1.399 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.6046, allocations: 4 kB / 1.399 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.6049, allocations: 107.3 kB / 1.399 GB, free: 11.58 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=13): time 2.594e-06/0.6049, allocations: 0 / 1.399 GB, free: 11.58 MB / 0.9011 GB Notification: Performance of matching and sorting (n=13): time 0.0007421/0.6056, allocations: 244.8 kB / 1.399 GB, free: 11.34 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/0.6057, allocations: 81.11 kB / 1.399 GB, free: 11.24 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.6069, allocations: 0.6165 MB / 1.4 GB, free: 10.61 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.6069, allocations: 33.7 kB / 1.4 GB, free: 10.57 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.6073, allocations: 264.3 kB / 1.4 GB, free: 10.31 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 6.704e-05/0.6073, allocations: 35.55 kB / 1.4 GB, free: 10.28 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.106e-05/0.6074, allocations: 4 kB / 1.4 GB, free: 10.27 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000282/0.6076, allocations: 374.8 kB / 1.4 GB, free: 9.898 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.6079, allocations: 79.95 kB / 1.4 GB, free: 9.82 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.6082, allocations: 139.2 kB / 1.401 GB, free: 9.668 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.6084, allocations: 79.92 kB / 1.401 GB, free: 9.59 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.6084, allocations: 3.938 kB / 1.401 GB, free: 9.586 MB / 0.9011 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006388/0.6091, allocations: 302.4 kB / 1.401 GB, free: 9.285 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.6091, allocations: 8.219 kB / 1.401 GB, free: 9.277 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.6091, allocations: 0 / 1.401 GB, free: 9.277 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.6092, allocations: 3.938 kB / 1.401 GB, free: 9.273 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.6094, allocations: 35.98 kB / 1.401 GB, free: 9.238 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.6094, allocations: 4 kB / 1.401 GB, free: 9.234 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.6096, allocations: 15.98 kB / 1.401 GB, free: 9.219 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/0.6097, allocations: 16.05 kB / 1.401 GB, free: 9.203 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.runSig,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0003531/0.61, allocations: 215.5 kB / 1.401 GB, free: 8.984 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.6102, allocations: 59.2 kB / 1.401 GB, free: 8.926 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005513/0.6107, allocations: 218.5 kB / 1.401 GB, free: 8.699 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.6107, allocations: 0 / 1.401 GB, free: 8.699 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.6108, allocations: 4 kB / 1.401 GB, free: 8.695 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.6108, allocations: 0 / 1.401 GB, free: 8.695 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005261/0.6113, allocations: 381.4 kB / 1.402 GB, free: 8.273 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.6113, allocations: 4 kB / 1.402 GB, free: 8.27 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.453e-05/0.6114, allocations: 12 kB / 1.402 GB, free: 8.258 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.6114, allocations: 4 kB / 1.402 GB, free: 8.254 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.6114, allocations: 7.984 kB / 1.402 GB, free: 8.246 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.6114, allocations: 7.984 kB / 1.402 GB, free: 8.238 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6115, allocations: 0 / 1.402 GB, free: 8.238 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004865/0.6119, allocations: 238.9 kB / 1.402 GB, free: 7.988 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.6121, allocations: 136.4 kB / 1.402 GB, free: 7.836 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.51e-05/0.6122, allocations: 11.95 kB / 1.402 GB, free: 7.824 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.6124, allocations: 11.98 kB / 1.402 GB, free: 7.812 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.586e-05/0.6125, allocations: 23.91 kB / 1.402 GB, free: 7.789 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.6125, allocations: 4 kB / 1.402 GB, free: 7.785 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0006933/0.6132, allocations: 475 kB / 1.403 GB, free: 7.328 MB / 0.9011 GB Notification: Performance of sort global known variables: time 3.71e-07/0.6132, allocations: 0 / 1.403 GB, free: 7.328 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004755/0.6137, allocations: 87.83 kB / 1.403 GB, free: 7.242 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.runSig,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00214/0.6158, allocations: 1.128 MB / 1.404 GB, free: 6.25 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0004317/0.6163, allocations: 159.8 kB / 1.404 GB, free: 6.094 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.6163, allocations: 4 kB / 1.404 GB, free: 6.09 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.6165, allocations: 63.91 kB / 1.404 GB, free: 6.027 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.617, allocations: 89.11 kB / 1.404 GB, free: 5.941 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.6192, allocations: 1.619 MB / 1.406 GB, free: 4.258 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005719/0.6198, allocations: 0.8769 MB / 1.407 GB, free: 3.352 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001786/0.62, allocations: 54.22 kB / 1.407 GB, free: 3.297 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002268/0.6202, allocations: 163.4 kB / 1.407 GB, free: 3.141 MB / 0.9011 GB Notification: Performance of SimCode: time 6.12e-07/0.6203, allocations: 4 kB / 1.407 GB, free: 3.137 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.6505, allocations: 9.928 MB / 1.417 GB, free: 9.406 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.6508, allocations: 236.1 kB / 1.417 GB, free: 9.164 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.399/3.05, allocations: 0 / 1.417 GB, free: 9.164 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat does not exist to compare? outputFormat=mat