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/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 99.08 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002754/0.002754, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.724/2.724, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.822/4.822, allocations: 409.2 MB / 0.6838 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007798/0.0007805, allocations: 8 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491/1.492, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004751/1.497, allocations: 2.06 MB / 0.9829 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00394/1.501, allocations: 1.421 MB / 0.9843 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004121/1.501, allocations: 7.938 kB / 0.9843 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001603/1.503, allocations: 290.2 kB / 0.9846 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0007525/1.504, allocations: 187.5 kB / 0.9847 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001266/1.505, allocations: 218.2 kB / 0.9849 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007492/1.506, allocations: 243.5 kB / 0.9852 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/1.506, allocations: 60.88 kB / 0.9852 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004757/1.506, allocations: 147.4 kB / 0.9854 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003978/1.507, allocations: 139.4 kB / 0.9855 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.187e-05/1.507, allocations: 4 kB / 0.9855 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003105/1.507, allocations: 55.89 kB / 0.9856 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003149/1.508, allocations: 107.6 kB / 0.9857 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001813/1.508, allocations: 109.4 kB / 0.9858 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007085/1.509, allocations: 361.4 kB / 0.9861 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/1.509, allocations: 0 / 0.9861 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.206e-06/1.509, allocations: 0 / 0.9861 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.466e-05/1.509, allocations: 0 / 0.9861 GB, free: 0.9023 MB / 0.7325 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.001784/1.51, allocations: 0.7638 MB / 0.9869 GB, free: 84 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.732e-05/1.51, allocations: 12.03 kB / 0.9869 GB, free: 72 kB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.559e-05/1.511, allocations: 38.55 kB / 0.9869 GB, free: 24 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/1.511, allocations: 59.42 kB / 0.987 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/1.512, allocations: 411.9 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/1.512, allocations: 8.188 kB / 0.9874 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/1.512, allocations: 12 kB / 0.9874 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004468/1.512, allocations: 141.5 kB / 0.9875 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/1.512, allocations: 7.938 kB / 0.9875 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/1.512, allocations: 11.98 kB / 0.9875 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/1.512, allocations: 0 / 0.9875 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/1.513, allocations: 64.53 kB / 0.9876 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/1.516, allocations: 0.5861 MB / 0.9882 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/1.516, allocations: 126.7 kB / 0.9883 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-05/1.516, allocations: 4 kB / 0.9883 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003796/1.517, allocations: 115.3 kB / 0.9884 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=13): time 4.008e-06/1.517, allocations: 0 / 0.9884 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13): time 0.0008409/1.518, allocations: 231.9 kB / 0.9886 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/1.518, allocations: 77.11 kB / 0.9887 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/1.519, allocations: 0.6837 MB / 0.9894 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/1.519, allocations: 33.7 kB / 0.9894 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/1.519, allocations: 264.3 kB / 0.9896 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.644e-05/1.519, allocations: 35.55 kB / 0.9897 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/1.519, allocations: 8 kB / 0.9897 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000283/1.52, allocations: 370.8 kB / 0.99 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/1.52, allocations: 67.97 kB / 0.9901 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/1.52, allocations: 118.6 kB / 0.9902 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/1.52, allocations: 78.8 kB / 0.9903 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/1.52, allocations: 0 / 0.9903 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007418/1.521, allocations: 269 kB / 0.9905 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/1.521, allocations: 4 kB / 0.9906 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/1.521, allocations: 0 / 0.9906 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/1.521, allocations: 11.92 kB / 0.9906 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/1.522, allocations: 27.98 kB / 0.9906 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/1.522, allocations: 8.062 kB / 0.9906 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/1.522, allocations: 27.88 kB / 0.9906 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/1.522, allocations: 8.047 kB / 0.9906 GB, free: 12.01 MB / 0.7481 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.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.y,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.0003725/1.522, allocations: 215.7 kB / 0.9908 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/1.522, allocations: 55.25 kB / 0.9909 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001561/1.523, allocations: 60.98 kB / 0.9909 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/1.523, allocations: 8 kB / 0.991 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/1.523, allocations: 0 / 0.991 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/1.523, allocations: 3.984 kB / 0.991 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005688/1.523, allocations: 373.3 kB / 0.9913 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/1.523, allocations: 0 / 0.9913 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.995e-05/1.523, allocations: 12 kB / 0.9913 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/1.523, allocations: 3.938 kB / 0.9913 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/1.523, allocations: 0 / 0.9913 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/1.523, allocations: 4 kB / 0.9913 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.523, allocations: 0 / 0.9913 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005327/1.524, allocations: 224.3 kB / 0.9915 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/1.524, allocations: 132.4 kB / 0.9917 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/1.524, allocations: 8 kB / 0.9917 GB, free: 10.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/1.524, allocations: 15.98 kB / 0.9917 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/1.525, allocations: 15.97 kB / 0.9917 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/1.525, allocations: 8 kB / 0.9917 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0009249/1.525, allocations: 471 kB / 0.9922 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.01e-07/1.526, allocations: 0 / 0.9922 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005839/1.526, allocations: 71.84 kB / 0.9922 GB, free: 10.27 MB / 0.7481 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.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * 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.002434/1.529, allocations: 1.086 MB / 0.9933 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005839/1.529, allocations: 149 kB / 0.9934 GB, free: 9.168 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/1.529, allocations: 0 / 0.9934 GB, free: 9.168 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/1.529, allocations: 51.92 kB / 0.9935 GB, free: 9.117 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000684/1.53, allocations: 91.34 kB / 0.9936 GB, free: 9.035 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/1.533, allocations: 1.577 MB / 0.9951 GB, free: 7.395 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007657/1.534, allocations: 0.8691 MB / 0.996 GB, free: 6.5 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003177/1.534, allocations: 50.92 kB / 0.996 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/1.534, allocations: 167.4 kB / 0.9962 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of SimCode: time 1.403e-06/1.534, allocations: 0 / 0.9962 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3785/1.913, allocations: 9.2 MB / 1.005 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004408/1.913, allocations: 246 kB / 1.005 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.079/5.993, allocations: 3.938 kB / 1.005 GB, free: 13.05 MB / 0.7637 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) Environment - environmentSimulation: 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