Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001611/0.001611, allocations: 104.9 kB / 16.27 MB, free: 6.402 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.001892/0.001892, allocations: 191.5 kB / 17.2 MB, free: 5.969 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.451/1.451, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.584/2.584, allocations: 437.1 MB / 0.7111 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 76.75 kB / 0.8699 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.361, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004576/0.3656, allocations: 2.479 MB / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002736/0.3684, allocations: 1.565 MB / 1.022 GB, free: 6.539 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.3686, allocations: 7.938 kB / 1.022 GB, free: 6.531 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009732/0.3697, allocations: 310.8 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000496/0.3702, allocations: 227.5 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.3709, allocations: 263.8 kB / 1.023 GB, free: 5.75 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004708/0.3714, allocations: 386.7 kB / 1.023 GB, free: 5.371 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.3716, allocations: 72.98 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.3718, allocations: 159.3 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.372, allocations: 155.3 kB / 1.023 GB, free: 4.992 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.3721, allocations: 20 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.3723, allocations: 79.89 kB / 1.024 GB, free: 4.895 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.3724, allocations: 127.5 kB / 1.024 GB, free: 4.77 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002094/0.3727, allocations: 198.6 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006474/0.3733, allocations: 0.4903 MB / 1.024 GB, free: 4.082 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3733, allocations: 0 / 1.024 GB, free: 4.082 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3733, allocations: 0 / 1.024 GB, free: 4.082 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.607e-06/0.3734, allocations: 0 / 1.024 GB, free: 4.082 MB / 0.795 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.001446/0.3748, allocations: 0.8336 MB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.3749, allocations: 8.922 kB / 1.025 GB, free: 3.184 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.375, allocations: 64.19 kB / 1.025 GB, free: 3.121 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.3757, allocations: 432.9 kB / 1.026 GB, free: 2.66 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3757, allocations: 11.94 kB / 1.026 GB, free: 2.648 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.3757, allocations: 8 kB / 1.026 GB, free: 2.641 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003161/0.3761, allocations: 140.8 kB / 1.026 GB, free: 2.492 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.3761, allocations: 0 / 1.026 GB, free: 2.492 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.3761, allocations: 7.984 kB / 1.026 GB, free: 2.484 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3761, allocations: 11.88 kB / 1.026 GB, free: 2.473 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.3763, allocations: 67.97 kB / 1.026 GB, free: 2.406 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009469/0.3773, allocations: 0.5744 MB / 1.026 GB, free: 1.781 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.3776, allocations: 126.7 kB / 1.027 GB, free: 1.648 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.3777, allocations: 48.84 kB / 1.027 GB, free: 1.598 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.3778, allocations: 0 / 1.027 GB, free: 1.598 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.378, allocations: 112.5 kB / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of pre-optimization done (n=13): time 1.532e-06/0.378, allocations: 0 / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of matching and sorting (n=13): time 0.0005237/0.3786, allocations: 233.7 kB / 1.027 GB, free: 1.242 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.3786, allocations: 81.11 kB / 1.027 GB, free: 1.145 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008055/0.3794, allocations: 0.6837 MB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.3795, allocations: 33.7 kB / 1.028 GB, free: 424 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.3797, allocations: 268.2 kB / 1.028 GB, free: 152 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.3798, allocations: 31.62 kB / 1.028 GB, free: 120 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.906e-05/0.3799, allocations: 53.69 kB / 1.028 GB, free: 60 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000213/0.3801, allocations: 382.8 kB / 1.028 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.3803, allocations: 67.97 kB / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.3805, allocations: 124.8 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.3807, allocations: 144.2 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3808, allocations: 3.938 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000455/0.3812, allocations: 263.2 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3812, allocations: 8 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3813, allocations: 0 / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3813, allocations: 3.938 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3814, allocations: 39.92 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.3815, allocations: 7.984 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.3816, allocations: 27.89 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.3817, allocations: 8 kB / 1.029 GB, free: 14.96 MB / 0.8106 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.000234/0.3819, allocations: 207.5 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.998e-05/0.382, allocations: 63.31 kB / 1.029 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-05/0.3821, allocations: 57.05 kB / 1.029 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3821, allocations: 0 / 1.029 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3821, allocations: 0 / 1.029 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3821, allocations: 4 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003838/0.3825, allocations: 381.3 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3825, allocations: 3.938 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.636e-05/0.3825, allocations: 7.984 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3826, allocations: 4 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.3826, allocations: 4 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3826, allocations: 0 / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3826, allocations: 0 / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003824/0.383, allocations: 220.9 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.3831, allocations: 132.4 kB / 1.03 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.535e-05/0.3832, allocations: 7.984 kB / 1.03 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.3833, allocations: 11.98 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.622e-05/0.3834, allocations: 15.98 kB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3834, allocations: 4 kB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005527/0.3839, allocations: 471 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3839, allocations: 0 / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003142/0.3843, allocations: 67.89 kB / 1.031 GB, free: 13.24 MB / 0.8106 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.001518/0.3858, allocations: 433.7 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003948/0.3862, allocations: 163.8 kB / 1.031 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3862, allocations: 0 / 1.031 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.3864, allocations: 51.98 kB / 1.031 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.3869, allocations: 93.42 kB / 1.031 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.3883, allocations: 0.8892 MB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.3888, allocations: 0.8688 MB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.873e-05/0.3889, allocations: 27.42 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of SimCode: time 3.81e-07/0.3889, allocations: 4 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of Templates: time 0.009606/0.3985, allocations: 5.725 MB / 1.039 GB, free: 5.145 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches