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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001294/0.001294, allocations: 193.2 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 65.05 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3427, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004906/0.3476, allocations: 2.462 MB / 0.9535 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002665/0.3503, allocations: 1.573 MB / 0.9551 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.3505, allocations: 4 kB / 0.9551 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.3515, allocations: 327.2 kB / 0.9554 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004418/0.352, allocations: 219.1 kB / 0.9556 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006627/0.3527, allocations: 266.5 kB / 0.9558 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004275/0.3531, allocations: 386.8 kB / 0.9562 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.3533, allocations: 72.7 kB / 0.9563 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.3535, allocations: 159.3 kB / 0.9564 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002208/0.3537, allocations: 163.2 kB / 0.9566 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.3538, allocations: 16 kB / 0.9566 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.354, allocations: 79.97 kB / 0.9567 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.3541, allocations: 135.4 kB / 0.9568 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.3543, allocations: 186.6 kB / 0.957 GB, free: 2 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005819/0.3549, allocations: 0.4902 MB / 0.9575 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3549, allocations: 4 kB / 0.9575 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3549, allocations: 0 / 0.9575 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.332e-05/0.355, allocations: 0 / 0.9575 GB, free: 1.504 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.001284/0.3562, allocations: 0.8375 MB / 0.9583 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3563, allocations: 8.031 kB / 0.9583 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.3564, allocations: 64.19 kB / 0.9584 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.357, allocations: 432.8 kB / 0.9588 GB, free: 80 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.3571, allocations: 11.94 kB / 0.9588 GB, free: 68 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.3571, allocations: 15.98 kB / 0.9588 GB, free: 52 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.3574, allocations: 139.3 kB / 0.9589 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3574, allocations: 0 / 0.9589 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.3575, allocations: 4 kB / 0.9589 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.3575, allocations: 7.875 kB / 0.9589 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.3577, allocations: 70.41 kB / 0.959 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000889/0.3586, allocations: 0.5743 MB / 0.9596 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.3589, allocations: 126.7 kB / 0.9597 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.359, allocations: 48.84 kB / 0.9597 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.359, allocations: 0 / 0.9597 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.3593, allocations: 111.3 kB / 0.9598 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=13): time 3.136e-06/0.3593, allocations: 3.984 kB / 0.9599 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13): time 0.0005494/0.3598, allocations: 237 kB / 0.9601 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.3599, allocations: 81.05 kB / 0.9602 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008627/0.3608, allocations: 0.6915 MB / 0.9608 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.3609, allocations: 29.7 kB / 0.9609 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.3611, allocations: 264.2 kB / 0.9611 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.3612, allocations: 35.61 kB / 0.9611 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.3613, allocations: 53.69 kB / 0.9612 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3614, allocations: 374.8 kB / 0.9616 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3616, allocations: 71.97 kB / 0.9616 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.3618, allocations: 127.1 kB / 0.9617 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.362, allocations: 134.5 kB / 0.9619 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.362, allocations: 3.938 kB / 0.9619 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004446/0.3625, allocations: 270.3 kB / 0.9621 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.3625, allocations: 8 kB / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3625, allocations: 0 / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3626, allocations: 4 kB / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.3627, allocations: 35.91 kB / 0.9622 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.3628, allocations: 4 kB / 0.9622 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.3629, allocations: 19.92 kB / 0.9622 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.3629, allocations: 8 kB / 0.9622 GB, free: 12.38 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 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.3632, allocations: 207.6 kB / 0.9624 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.3632, allocations: 63.19 kB / 0.9625 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3634, allocations: 57.05 kB / 0.9625 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3634, allocations: 0 / 0.9625 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3634, allocations: 3.938 kB / 0.9625 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3634, allocations: 4 kB / 0.9625 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.3638, allocations: 373.4 kB / 0.9629 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3638, allocations: 3.938 kB / 0.9629 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.653e-05/0.3639, allocations: 7.984 kB / 0.9629 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3639, allocations: 4 kB / 0.9629 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.3639, allocations: 4 kB / 0.9629 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.3639, allocations: 7.922 kB / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3639, allocations: 0 / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.3643, allocations: 228.1 kB / 0.9631 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.3645, allocations: 128.4 kB / 0.9633 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.3646, allocations: 12 kB / 0.9633 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3647, allocations: 11.98 kB / 0.9633 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.3647, allocations: 19.92 kB / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.3648, allocations: 4 kB / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004805/0.3653, allocations: 471 kB / 0.9637 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3653, allocations: 0 / 0.9637 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003/0.3656, allocations: 71.89 kB / 0.9638 GB, free: 10.63 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.3666, allocations: 418.4 kB / 0.9642 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003607/0.367, allocations: 161.1 kB / 0.9644 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.367, allocations: 0 / 0.9644 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.3671, allocations: 55.92 kB / 0.9644 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/0.3677, allocations: 101.5 kB / 0.9645 GB, free: 10.08 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.3689, allocations: 0.8267 MB / 0.9653 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.3693, allocations: 0.8687 MB / 0.9662 GB, free: 8.324 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000125/0.3695, allocations: 42.95 kB / 0.9662 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.966e-05/0.3695, allocations: 35.42 kB / 0.9662 GB, free: 8.25 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.3695, allocations: 0 / 0.9662 GB, free: 8.25 MB / 0.7481 GB Notification: Performance of Templates: time 0.009585/0.3791, allocations: 4.354 MB / 0.9705 GB, free: 3.934 MB / 0.7481 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches