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.001259/0.001259, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001255/0.001255, allocations: 183.9 kB / 17.19 MB, free: 5.688 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.341/1.341, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.263/2.263, allocations: 390.2 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 64.88 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2617, allocations: 140.4 MB / 0.9503 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004504/0.2663, allocations: 2.459 MB / 0.9527 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0028/0.2691, allocations: 1.569 MB / 0.9542 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002912/0.2694, allocations: 7.938 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009847/0.2705, allocations: 331.2 kB / 0.9545 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005613/0.271, allocations: 219.1 kB / 0.9547 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007313/0.2718, allocations: 259.3 kB / 0.955 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005398/0.2723, allocations: 394.7 kB / 0.9554 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.2725, allocations: 68.98 kB / 0.9554 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/0.2728, allocations: 159.3 kB / 0.9556 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.273, allocations: 159.3 kB / 0.9557 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.894e-05/0.2731, allocations: 19.94 kB / 0.9557 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002546/0.2734, allocations: 83.94 kB / 0.9558 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.2735, allocations: 123.5 kB / 0.9559 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.2737, allocations: 194.5 kB / 0.9561 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005086/0.2742, allocations: 486.2 kB / 0.9566 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2742, allocations: 4 kB / 0.9566 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2742, allocations: 4 kB / 0.9566 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.233e-05/0.2742, allocations: 0 / 0.9566 GB, free: 2.367 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.001308/0.2756, allocations: 0.8335 MB / 0.9574 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2756, allocations: 12.03 kB / 0.9574 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.2757, allocations: 56.19 kB / 0.9575 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.2763, allocations: 436.8 kB / 0.9579 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.2763, allocations: 19.81 kB / 0.9579 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.2763, allocations: 12 kB / 0.9579 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.2766, allocations: 140.6 kB / 0.9581 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2766, allocations: 0 / 0.9581 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.2767, allocations: 0 / 0.9581 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2767, allocations: 7.938 kB / 0.9581 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.2769, allocations: 67.95 kB / 0.9581 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009274/0.2778, allocations: 0.5744 MB / 0.9587 GB, free: 68 kB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.2781, allocations: 134.7 kB / 0.9588 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.2783, allocations: 40.84 kB / 0.9589 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.2783, allocations: 7.984 kB / 0.9589 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002395/0.2785, allocations: 107.3 kB / 0.959 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=13): time 2.034e-06/0.2786, allocations: 0 / 0.959 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13): time 0.0005422/0.2791, allocations: 241 kB / 0.9592 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.2792, allocations: 81.09 kB / 0.9593 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007504/0.2799, allocations: 0.6798 MB / 0.9599 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.28, allocations: 29.7 kB / 0.96 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.2802, allocations: 272.2 kB / 0.9602 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.2802, allocations: 31.59 kB / 0.9603 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.2803, allocations: 53.7 kB / 0.9603 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2805, allocations: 370.8 kB / 0.9607 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.2806, allocations: 75.97 kB / 0.9607 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.2808, allocations: 119.1 kB / 0.9609 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.2811, allocations: 140.5 kB / 0.961 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2811, allocations: 7.938 kB / 0.961 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004561/0.2815, allocations: 274.2 kB / 0.9613 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2816, allocations: 5.875 kB / 0.9613 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2816, allocations: 4 kB / 0.9613 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2816, allocations: 48 / 0.9613 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.2818, allocations: 39.91 kB / 0.9613 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.2818, allocations: 3.984 kB / 0.9613 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.282, allocations: 23.98 kB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.282, allocations: 12 kB / 0.9613 GB, free: 13.24 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.0002062/0.2822, allocations: 207.5 kB / 0.9615 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/0.2823, allocations: 59.19 kB / 0.9616 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.993e-05/0.2824, allocations: 57.05 kB / 0.9616 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2824, allocations: 4 kB / 0.9617 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2824, allocations: 0 / 0.9617 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2824, allocations: 3.984 kB / 0.9617 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.2827, allocations: 377.3 kB / 0.962 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2828, allocations: 7.938 kB / 0.962 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.75e-05/0.2828, allocations: 8 kB / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2828, allocations: 0 / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2828, allocations: 4 kB / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2828, allocations: 3.984 kB / 0.962 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2828, allocations: 4 kB / 0.962 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.2832, allocations: 227.8 kB / 0.9623 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.2833, allocations: 128.4 kB / 0.9624 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.646e-05/0.2834, allocations: 8 kB / 0.9624 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.2835, allocations: 11.98 kB / 0.9624 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.2836, allocations: 15.98 kB / 0.9624 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.2836, allocations: 7.984 kB / 0.9624 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004943/0.2841, allocations: 467 kB / 0.9629 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2841, allocations: 4 kB / 0.9629 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003177/0.2844, allocations: 67.91 kB / 0.9629 GB, free: 11.5 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.001012/0.2854, allocations: 431.3 kB / 0.9633 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000377/0.2858, allocations: 155.8 kB / 0.9635 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2858, allocations: 0 / 0.9635 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.286, allocations: 63.91 kB / 0.9636 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004855/0.2865, allocations: 100.5 kB / 0.9637 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.2879, allocations: 0.8699 MB / 0.9645 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.2883, allocations: 0.8687 MB / 0.9654 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.228e-05/0.2884, allocations: 31.44 kB / 0.9654 GB, free: 9.094 MB / 0.7481 GB Notification: Performance of SimCode: time 3.81e-07/0.2884, allocations: 0 / 0.9654 GB, free: 9.094 MB / 0.7481 GB Notification: Performance of Templates: time 0.009787/0.2982, allocations: 5.72 MB / 0.971 GB, free: 3.426 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