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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.207/2.207, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001023/0.001023, allocations: 180.9 kB / 492.3 MB, free: 0.6445 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.428/1.428, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0008399/0.00084, allocations: 85.33 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.26e-05/3.277e-05, allocations: 11.98 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2631, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9053/1.168, allocations: 155.9 MB / 1.365 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/1.169, allocations: 89.45 kB / 1.365 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03244/1.201, allocations: 14.12 MB / 1.379 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.542e-06/1.201, allocations: 0 / 1.379 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.771e-05/1.201, allocations: 11.69 kB / 1.379 GB, free: 33.17 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.000815/1.202, allocations: 0.6898 MB / 1.379 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/1.202, allocations: 7.75 kB / 1.379 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.766e-05/1.202, allocations: 66.2 kB / 1.379 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/1.203, allocations: 431.2 kB / 1.38 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/1.203, allocations: 11.03 kB / 1.38 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/1.203, allocations: 10.91 kB / 1.38 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/1.203, allocations: 140.6 kB / 1.38 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/1.203, allocations: 0 / 1.38 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/1.203, allocations: 3.562 kB / 1.38 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/1.203, allocations: 3.938 kB / 1.38 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/1.203, allocations: 64.95 kB / 1.38 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000806/1.204, allocations: 0.5965 MB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/1.204, allocations: 126.3 kB / 1.381 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.139e-05/1.204, allocations: 53.08 kB / 1.381 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/1.204, allocations: 7.781 kB / 1.381 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/1.205, allocations: 102.8 kB / 1.381 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.813e-06/1.205, allocations: 3.844 kB / 1.381 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13): time 0.0003213/1.205, allocations: 193.1 kB / 1.381 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/1.205, allocations: 85.02 kB / 1.381 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006249/1.206, allocations: 0.6031 MB / 1.382 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/1.206, allocations: 37.22 kB / 1.382 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/1.206, allocations: 267.2 kB / 1.382 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/1.206, allocations: 34.45 kB / 1.382 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/1.206, allocations: 3.125 kB / 1.382 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001245/1.206, allocations: 370.3 kB / 1.382 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/1.206, allocations: 77.2 kB / 1.382 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/1.206, allocations: 130.4 kB / 1.383 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/1.206, allocations: 85.08 kB / 1.383 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/1.206, allocations: 3.844 kB / 1.383 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003294/1.207, allocations: 288.9 kB / 1.383 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.207, allocations: 11.91 kB / 1.383 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/1.207, allocations: 0 / 1.383 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/1.207, allocations: 0 / 1.383 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/1.207, allocations: 31.05 kB / 1.383 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/1.207, allocations: 3.844 kB / 1.383 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/1.207, allocations: 26.92 kB / 1.383 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/1.207, allocations: 11.19 kB / 1.383 GB, free: 30.59 MB / 0.8386 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 8.208e-05/1.207, allocations: 129.5 kB / 1.383 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/1.207, allocations: 58.36 kB / 1.383 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/1.208, allocations: 215.8 kB / 1.383 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/1.208, allocations: 0 / 1.383 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/1.208, allocations: 0 / 1.383 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/1.208, allocations: 3.984 kB / 1.383 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/1.208, allocations: 380.2 kB / 1.384 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/1.208, allocations: 0 / 1.384 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.497e-05/1.208, allocations: 15.67 kB / 1.384 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/1.208, allocations: 4 kB / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/1.208, allocations: 7.516 kB / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/1.208, allocations: 3.938 kB / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/1.208, allocations: 3.938 kB / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/1.208, allocations: 228.5 kB / 1.384 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.812e-05/1.208, allocations: 136.8 kB / 1.384 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.791e-05/1.208, allocations: 3.5 kB / 1.384 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/1.208, allocations: 27.5 kB / 1.384 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/1.209, allocations: 23.56 kB / 1.384 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/1.209, allocations: 3.844 kB / 1.384 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004185/1.209, allocations: 464.8 kB / 1.385 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.209, allocations: 0 / 1.385 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000345/1.209, allocations: 86.3 kB / 1.385 GB, free: 29.67 MB / 0.8386 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.0008981/1.21, allocations: 422 kB / 1.385 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002504/1.211, allocations: 153.3 kB / 1.385 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.211, allocations: 0 / 1.385 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.83e-05/1.211, allocations: 61.3 kB / 1.385 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/1.211, allocations: 86.98 kB / 1.385 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007987/1.212, allocations: 0.6033 MB / 1.386 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/1.212, allocations: 0.8741 MB / 1.387 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001354/1.212, allocations: 48.97 kB / 1.387 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.245e-05/1.212, allocations: 34.11 kB / 1.387 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.213, allocations: 3.938 kB / 1.387 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of Templates: time 0.007927/1.22, allocations: 4.686 MB / 1.391 GB, free: 26.01 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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 & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches