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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001139/0.001139, allocations: 109.9 kB / 15.99 MB, free: 6.359 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.001266/0.001266, allocations: 195.1 kB / 16.91 MB, free: 6.191 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.324/1.324, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.201/2.201, allocations: 390.2 MB / 0.665 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 65.8 kB / 0.8127 GB, free: 33.27 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2615, allocations: 140.4 MB / 0.9498 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004217/0.2658, allocations: 2.501 MB / 0.9522 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002658/0.2685, allocations: 1.554 MB / 0.9537 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000255/0.2688, allocations: 4 kB / 0.9537 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.2699, allocations: 319.4 kB / 0.954 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005014/0.2704, allocations: 195.3 kB / 0.9542 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006936/0.2711, allocations: 247.4 kB / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005177/0.2716, allocations: 386.8 kB / 0.9548 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.2718, allocations: 76.97 kB / 0.9549 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002693/0.2721, allocations: 163.3 kB / 0.9551 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.2723, allocations: 171.2 kB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.961e-05/0.2724, allocations: 20 kB / 0.9552 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.2726, allocations: 83.89 kB / 0.9553 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.2728, allocations: 123.6 kB / 0.9554 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.273, allocations: 194.5 kB / 0.9556 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004782/0.2735, allocations: 391.1 kB / 0.956 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2735, allocations: 0 / 0.956 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2735, allocations: 4 kB / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.691e-05/0.2736, allocations: 0 / 0.956 GB, free: 2.84 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.00128/0.2748, allocations: 0.827 MB / 0.9568 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2749, allocations: 12.02 kB / 0.9568 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.275, allocations: 64.19 kB / 0.9569 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/0.2757, allocations: 428.8 kB / 0.9573 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.2757, allocations: 11.94 kB / 0.9573 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.2757, allocations: 12 kB / 0.9573 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000315/0.2761, allocations: 141.4 kB / 0.9574 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.2761, allocations: 0 / 0.9574 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.2761, allocations: 4 kB / 0.9575 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2761, allocations: 7.938 kB / 0.9575 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.2763, allocations: 71.89 kB / 0.9575 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.2773, allocations: 0.5783 MB / 0.9581 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003191/0.2776, allocations: 114.8 kB / 0.9582 GB, free: 432 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.2777, allocations: 60.77 kB / 0.9583 GB, free: 368 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.2778, allocations: 0 / 0.9583 GB, free: 368 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.278, allocations: 115.3 kB / 0.9584 GB, free: 240 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.278, allocations: 0 / 0.9584 GB, free: 240 kB / 0.7325 GB Notification: Performance of matching and sorting (n=13): time 0.0005455/0.2786, allocations: 232.2 kB / 0.9586 GB, free: 4 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.2786, allocations: 81.11 kB / 0.9587 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007965/0.2794, allocations: 0.6876 MB / 0.9593 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.2795, allocations: 33.64 kB / 0.9594 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002246/0.2797, allocations: 268.2 kB / 0.9596 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.2798, allocations: 35.55 kB / 0.9597 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.2799, allocations: 57.69 kB / 0.9597 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.28, allocations: 366.8 kB / 0.9601 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.2802, allocations: 71.97 kB / 0.9601 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.2804, allocations: 136.6 kB / 0.9603 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.2807, allocations: 128 kB / 0.9604 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2807, allocations: 3.938 kB / 0.9604 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004781/0.2812, allocations: 277.9 kB / 0.9607 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.2812, allocations: 8 kB / 0.9607 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2812, allocations: 0 / 0.9607 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2812, allocations: 0 / 0.9607 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.2814, allocations: 35.98 kB / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.2814, allocations: 0 / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.2816, allocations: 19.92 kB / 0.9607 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.2817, allocations: 8 kB / 0.9607 GB, free: 13.73 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.0002247/0.2819, allocations: 215.5 kB / 0.9609 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/0.282, allocations: 63.19 kB / 0.961 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.2821, allocations: 61.03 kB / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.2821, allocations: 0 / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2821, allocations: 0 / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2821, allocations: 0 / 0.961 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003462/0.2824, allocations: 377.4 kB / 0.9614 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2825, allocations: 3.938 kB / 0.9614 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.873e-05/0.2825, allocations: 7.938 kB / 0.9614 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2825, allocations: 4 kB / 0.9614 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.2825, allocations: 7.984 kB / 0.9614 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2825, allocations: 0 / 0.9614 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2825, allocations: 0 / 0.9614 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.2829, allocations: 224.3 kB / 0.9616 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.283, allocations: 124.4 kB / 0.9618 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.542e-05/0.2831, allocations: 7.938 kB / 0.9618 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.2832, allocations: 19.98 kB / 0.9618 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.2833, allocations: 15.97 kB / 0.9618 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.2833, allocations: 11.94 kB / 0.9618 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005003/0.2838, allocations: 467 kB / 0.9623 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2838, allocations: 0 / 0.9623 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003146/0.2842, allocations: 63.91 kB / 0.9623 GB, free: 11.99 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.001004/0.2852, allocations: 423.2 kB / 0.9627 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003921/0.2856, allocations: 163.8 kB / 0.9629 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2856, allocations: 4 kB / 0.9629 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.2857, allocations: 55.91 kB / 0.9629 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.2862, allocations: 101.5 kB / 0.963 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.2876, allocations: 0.9948 MB / 0.964 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.2881, allocations: 0.8625 MB / 0.9649 GB, free: 9.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.2882, allocations: 31.42 kB / 0.9649 GB, free: 9.469 MB / 0.7481 GB Notification: Performance of SimCode: time 4.51e-07/0.2882, allocations: 3.938 kB / 0.9649 GB, free: 9.465 MB / 0.7481 GB Notification: Performance of Templates: time 0.00926/0.2975, allocations: 5.718 MB / 0.9705 GB, free: 3.797 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 -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