Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.321/2.321, allocations: 390.3 MB / 405.3 MB, free: 13.54 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.001204/0.001205, allocations: 187.4 kB / 498.1 MB, free: 5.762 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.643/1.643, allocations: 223.2 MB / 0.7948 GB, free: 17.99 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.001025/0.001025, allocations: 100.3 kB / 0.9346 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003835, allocations: 9.859 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2903, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1955/0.4859, allocations: 156 MB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.4863, allocations: 99.88 kB / 1.375 GB, free: 5.969 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03762/0.5239, allocations: 14.16 MB / 1.389 GB, free: 7.684 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.683e-06/0.5239, allocations: 0 / 1.389 GB, free: 7.684 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.151e-05/0.524, allocations: 8 kB / 1.389 GB, free: 7.676 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001155/0.5252, allocations: 0.807 MB / 1.39 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.5252, allocations: 8.031 kB / 1.39 GB, free: 6.801 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.5253, allocations: 46.55 kB / 1.39 GB, free: 6.746 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.708e-05/0.5254, allocations: 67.14 kB / 1.39 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007089/0.5261, allocations: 435.9 kB / 1.391 GB, free: 6.211 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.5261, allocations: 8.188 kB / 1.391 GB, free: 6.203 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.5261, allocations: 12 kB / 1.391 GB, free: 6.191 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.5264, allocations: 139.1 kB / 1.391 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.5265, allocations: 0 / 1.391 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.5265, allocations: 4 kB / 1.391 GB, free: 6.043 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.5265, allocations: 0 / 1.391 GB, free: 6.043 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.5267, allocations: 84.44 kB / 1.391 GB, free: 5.961 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009805/0.5277, allocations: 0.5988 MB / 1.391 GB, free: 5.312 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.528, allocations: 138.7 kB / 1.391 GB, free: 5.168 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.528, allocations: 0 / 1.391 GB, free: 5.168 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002285/0.5282, allocations: 123.2 kB / 1.392 GB, free: 5.035 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.5283, allocations: 0 / 1.392 GB, free: 5.035 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13): time 0.0005188/0.5288, allocations: 232.9 kB / 1.392 GB, free: 4.801 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.5288, allocations: 85.11 kB / 1.392 GB, free: 4.699 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007701/0.5296, allocations: 0.6204 MB / 1.393 GB, free: 4.074 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.5297, allocations: 25.7 kB / 1.393 GB, free: 4.043 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.5299, allocations: 264.4 kB / 1.393 GB, free: 3.781 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.5299, allocations: 43.75 kB / 1.393 GB, free: 3.738 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.5299, allocations: 0 / 1.393 GB, free: 3.738 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.5301, allocations: 378.7 kB / 1.393 GB, free: 3.359 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.5303, allocations: 83.95 kB / 1.393 GB, free: 3.277 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.5305, allocations: 133.5 kB / 1.393 GB, free: 3.129 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.5307, allocations: 85.69 kB / 1.393 GB, free: 3.047 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.5307, allocations: 0 / 1.393 GB, free: 3.047 MB / 0.8855 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004669/0.5312, allocations: 300.7 kB / 1.394 GB, free: 2.746 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.5312, allocations: 4 kB / 1.394 GB, free: 2.742 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5312, allocations: 0 / 1.394 GB, free: 2.742 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.5312, allocations: 4 kB / 1.394 GB, free: 2.738 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.5314, allocations: 35.91 kB / 1.394 GB, free: 2.703 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.5314, allocations: 4 kB / 1.394 GB, free: 2.699 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.5316, allocations: 19.98 kB / 1.394 GB, free: 2.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.5316, allocations: 16.06 kB / 1.394 GB, free: 2.664 MB / 0.8855 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.0002474/0.5319, allocations: 213 kB / 1.394 GB, free: 2.449 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.937e-05/0.532, allocations: 59.2 kB / 1.394 GB, free: 2.391 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004212/0.5324, allocations: 214.6 kB / 1.394 GB, free: 2.168 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.5324, allocations: 4 kB / 1.394 GB, free: 2.164 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.5324, allocations: 0 / 1.394 GB, free: 2.164 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5324, allocations: 3.984 kB / 1.394 GB, free: 2.16 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.5328, allocations: 389.2 kB / 1.395 GB, free: 1.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.5328, allocations: 0 / 1.395 GB, free: 1.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-05/0.5329, allocations: 11.94 kB / 1.395 GB, free: 1.719 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.5329, allocations: 7.953 kB / 1.395 GB, free: 1.711 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.5329, allocations: 7.984 kB / 1.395 GB, free: 1.703 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.533, allocations: 0 / 1.395 GB, free: 1.703 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.533, allocations: 0 / 1.395 GB, free: 1.703 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.5334, allocations: 230.8 kB / 1.395 GB, free: 1.461 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.5335, allocations: 148.3 kB / 1.395 GB, free: 1.297 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.559e-05/0.5336, allocations: 11.94 kB / 1.395 GB, free: 1.285 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.5337, allocations: 16 kB / 1.395 GB, free: 1.27 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.174e-05/0.5338, allocations: 24 kB / 1.395 GB, free: 1.246 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.5338, allocations: 11.92 kB / 1.395 GB, free: 1.234 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000555/0.5344, allocations: 471 kB / 1.396 GB, free: 0.7812 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5344, allocations: 0 / 1.396 GB, free: 0.7812 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003882/0.5348, allocations: 87.86 kB / 1.396 GB, free: 0.6953 MB / 0.8855 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.001732/0.5365, allocations: 1.124 MB / 1.397 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003728/0.5369, allocations: 164.4 kB / 1.397 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5369, allocations: 0 / 1.397 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.5371, allocations: 59.98 kB / 1.397 GB, free: 15.49 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.5375, allocations: 87.48 kB / 1.397 GB, free: 15.4 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.5395, allocations: 1.627 MB / 1.399 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.54, allocations: 0.8757 MB / 1.4 GB, free: 12.81 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001599/0.5401, allocations: 46.25 kB / 1.4 GB, free: 12.77 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.5404, allocations: 175.4 kB / 1.4 GB, free: 12.59 MB / 0.9011 GB Notification: Performance of SimCode: time 6.91e-07/0.5404, allocations: 0 / 1.4 GB, free: 12.59 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.5634, allocations: 9.913 MB / 1.409 GB, free: 2.859 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.5636, allocations: 225.1 kB / 1.41 GB, free: 2.621 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.211/2.775, allocations: 0 / 1.41 GB, free: 2.621 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat does not exist to compare? outputFormat=mat