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.001344/0.001344, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.001238/0.001238, allocations: 183 kB / 17.34 MB, free: 5.75 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.15 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.21/2.21, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.91 kB / 0.9515 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9363/0.9377, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003716/0.9414, allocations: 2.456 MB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002475/0.9439, allocations: 1.576 MB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.9442, allocations: 6.688 kB / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.9452, allocations: 321.7 kB / 1.093 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005019/0.9457, allocations: 218.9 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.9465, allocations: 279.8 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005154/0.947, allocations: 387.1 kB / 1.094 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.9472, allocations: 74.66 kB / 1.094 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002548/0.9475, allocations: 166.4 kB / 1.094 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.9478, allocations: 160.2 kB / 1.094 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.9478, allocations: 18.59 kB / 1.094 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.9481, allocations: 76.67 kB / 1.094 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.9482, allocations: 130.8 kB / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.9484, allocations: 194.6 kB / 1.095 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006954/0.9491, allocations: 0.4947 MB / 1.095 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.9491, allocations: 0 / 1.095 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.214e-06/0.9491, allocations: 4.625 kB / 1.095 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.626e-06/0.9491, allocations: 0 / 1.095 GB, free: 1.539 MB / 0.8575 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.001197/0.9503, allocations: 0.8237 MB / 1.096 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.9504, allocations: 10.14 kB / 1.096 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.9505, allocations: 59.34 kB / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.9511, allocations: 441.8 kB / 1.096 GB, free: 500 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.9511, allocations: 21.55 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.9512, allocations: 8.438 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003131/0.9515, allocations: 139.6 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.9515, allocations: 3.938 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.9515, allocations: 5.344 kB / 1.096 GB, free: 396 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.9515, allocations: 6.312 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.9518, allocations: 65.3 kB / 1.097 GB, free: 372 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009745/0.9527, allocations: 0.5778 MB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.9531, allocations: 122.3 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.9532, allocations: 52.44 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.9533, allocations: 6.219 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.9535, allocations: 108.8 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.9535, allocations: 0 / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0005983/0.9541, allocations: 234 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.9542, allocations: 82.75 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009797/0.9552, allocations: 0.6815 MB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.9552, allocations: 35.86 kB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.9555, allocations: 265.9 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.388e-05/0.9555, allocations: 37.22 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.9557, allocations: 54.52 kB / 1.099 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.9558, allocations: 369.5 kB / 1.099 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.956, allocations: 72.19 kB / 1.099 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.9562, allocations: 122.9 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.9565, allocations: 135.6 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.9565, allocations: 7.875 kB / 1.099 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005064/0.957, allocations: 266.2 kB / 1.1 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.9571, allocations: 9.156 kB / 1.1 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.9571, allocations: 1.156 kB / 1.1 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.9571, allocations: 1.609 kB / 1.1 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.9573, allocations: 35.42 kB / 1.1 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.9573, allocations: 6.156 kB / 1.1 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.9575, allocations: 26.31 kB / 1.1 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.9575, allocations: 6.969 kB / 1.1 GB, free: 14.35 MB / 0.8731 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.0002703/0.9578, allocations: 209.5 kB / 1.1 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.797e-05/0.9579, allocations: 61.19 kB / 1.1 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.958, allocations: 58.27 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.958, allocations: 2.281 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.958, allocations: 0.6094 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.958, allocations: 1.094 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004513/0.9585, allocations: 369.4 kB / 1.1 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.9585, allocations: 4.969 kB / 1.1 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.9586, allocations: 11.28 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.9586, allocations: 1.859 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.9586, allocations: 10.94 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.9586, allocations: 4.781 kB / 1.1 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.9586, allocations: 0.8906 kB / 1.1 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.959, allocations: 217.8 kB / 1.101 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.9591, allocations: 134.7 kB / 1.101 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.584e-05/0.9592, allocations: 3.438 kB / 1.101 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.9593, allocations: 13.33 kB / 1.101 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.9594, allocations: 21.97 kB / 1.101 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.9594, allocations: 5.953 kB / 1.101 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006427/0.9601, allocations: 473.8 kB / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9601, allocations: 0 / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003661/0.9605, allocations: 62.09 kB / 1.101 GB, free: 13.38 MB / 0.8731 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.00107/0.9615, allocations: 442.5 kB / 1.102 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004126/0.962, allocations: 152.2 kB / 1.102 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.962, allocations: 1.625 kB / 1.102 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.9621, allocations: 57.45 kB / 1.102 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.9627, allocations: 96.16 kB / 1.102 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.9643, allocations: 0.8733 MB / 1.103 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.9649, allocations: 0.8573 MB / 1.104 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.609e-05/0.965, allocations: 33.84 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of SimCode: time 5.71e-07/0.965, allocations: 0 / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of Templates: time 0.01218/0.9772, allocations: 5.753 MB / 1.109 GB, free: 10.88 MB / 0.8731 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