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.19/2.19, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001196/0.001196, allocations: 176.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 221.3 MB / 0.7915 GB, free: 5.383 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.0009024/0.0009024, allocations: 103.5 kB / 0.9318 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.171e-05/3.175e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2636, allocations: 143 MB / 1.219 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8599/1.124, allocations: 156.7 MB / 1.372 GB, free: 13.42 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/1.124, allocations: 92.88 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.03752/1.162, allocations: 14.13 MB / 1.386 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.164e-06/1.162, allocations: 0 / 1.386 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.5e-05/1.162, allocations: 8 kB / 1.386 GB, free: 1.258 MB / 0.8386 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.001282/1.163, allocations: 0.6991 MB / 1.386 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/1.163, allocations: 8.031 kB / 1.386 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/1.163, allocations: 41.73 kB / 1.387 GB, free: 488 kB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/1.163, allocations: 63.2 kB / 1.387 GB, free: 424 kB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008109/1.164, allocations: 427.9 kB / 1.387 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/1.164, allocations: 7.312 kB / 1.387 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/1.164, allocations: 15.25 kB / 1.387 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002548/1.164, allocations: 144.5 kB / 1.387 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/1.164, allocations: 0 / 1.387 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/1.164, allocations: 3.375 kB / 1.387 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/1.164, allocations: 4 kB / 1.387 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/1.165, allocations: 72.23 kB / 1.387 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/1.166, allocations: 0.5993 MB / 1.388 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/1.166, allocations: 120.9 kB / 1.388 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.408e-05/1.166, allocations: 44.73 kB / 1.388 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/1.166, allocations: 0 / 1.388 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/1.166, allocations: 114.1 kB / 1.388 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/1.166, allocations: 0 / 1.388 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13): time 0.0003603/1.167, allocations: 197.3 kB / 1.388 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/1.167, allocations: 81.11 kB / 1.388 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007485/1.167, allocations: 0.6067 MB / 1.389 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/1.168, allocations: 29.2 kB / 1.389 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/1.168, allocations: 272.2 kB / 1.389 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/1.168, allocations: 34.48 kB / 1.389 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/1.168, allocations: 3.438 kB / 1.389 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001468/1.168, allocations: 371 kB / 1.39 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/1.168, allocations: 79.23 kB / 1.39 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/1.168, allocations: 125 kB / 1.39 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/1.168, allocations: 94.58 kB / 1.39 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.168, allocations: 0 / 1.39 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004541/1.169, allocations: 291.5 kB / 1.39 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/1.169, allocations: 4 kB / 1.39 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/1.169, allocations: 0 / 1.39 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/1.169, allocations: 4 kB / 1.39 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/1.169, allocations: 31.92 kB / 1.39 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/1.169, allocations: 11.92 kB / 1.39 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/1.169, allocations: 27.92 kB / 1.39 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/1.169, allocations: 11.06 kB / 1.39 GB, free: 13.21 MB / 0.8542 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 () * 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.0001072/1.17, allocations: 120.8 kB / 1.39 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-05/1.17, allocations: 59.2 kB / 1.39 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003533/1.17, allocations: 220.1 kB / 1.391 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/1.17, allocations: 4 kB / 1.391 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/1.17, allocations: 4 kB / 1.391 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/1.17, allocations: 0 / 1.391 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003394/1.17, allocations: 382.2 kB / 1.391 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.17, allocations: 3.984 kB / 1.391 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.132e-05/1.17, allocations: 8.047 kB / 1.391 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/1.17, allocations: 7.938 kB / 1.391 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/1.17, allocations: 7.875 kB / 1.391 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/1.17, allocations: 0 / 1.391 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.17, allocations: 0 / 1.391 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/1.171, allocations: 231 kB / 1.391 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/1.171, allocations: 136.2 kB / 1.391 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/1.171, allocations: 11.2 kB / 1.391 GB, free: 12.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/1.171, allocations: 15.36 kB / 1.391 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/1.171, allocations: 19.09 kB / 1.391 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/1.171, allocations: 7.984 kB / 1.391 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0005168/1.172, allocations: 463.7 kB / 1.392 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.91e-07/1.172, allocations: 4 kB / 1.392 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003673/1.172, allocations: 87.05 kB / 1.392 GB, free: 11.64 MB / 0.8542 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) * 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.001435/1.174, allocations: 1.073 MB / 1.393 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002969/1.174, allocations: 155.1 kB / 1.393 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.174, allocations: 0 / 1.393 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/1.174, allocations: 61.23 kB / 1.393 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/1.174, allocations: 84 kB / 1.393 GB, free: 10.49 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/1.176, allocations: 0.7405 MB / 1.394 GB, free: 9.789 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/1.176, allocations: 0.875 MB / 1.395 GB, free: 8.906 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001548/1.176, allocations: 54.02 kB / 1.395 GB, free: 8.852 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/1.177, allocations: 171.7 kB / 1.395 GB, free: 8.805 MB / 0.8542 GB Notification: Performance of SimCode: time 4.51e-07/1.177, allocations: 0 / 1.395 GB, free: 8.805 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/1.202, allocations: 10.08 MB / 1.405 GB, free: 14.93 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/1.202, allocations: 208.2 kB / 1.405 GB, free: 14.7 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/3.362, allocations: 3.938 kB / 1.405 GB, free: 14.7 MB / 0.8698 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