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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001578/0.001578, allocations: 194.7 kB / 16.14 MB, free: 6.637 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.193/1.193, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.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.178/2.178, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5991/0.6004, allocations: 140.4 MB / 0.949 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003553/0.604, allocations: 2.5 MB / 0.9515 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00244/0.6065, allocations: 1.545 MB / 0.953 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003003/0.6068, allocations: 1.562 kB / 0.953 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009984/0.6078, allocations: 323.9 kB / 0.9533 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005325/0.6084, allocations: 194.9 kB / 0.9535 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000673/0.6091, allocations: 237.5 kB / 0.9537 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005151/0.6096, allocations: 377 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.6097, allocations: 74.45 kB / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.61, allocations: 145.7 kB / 0.9543 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.6103, allocations: 165 kB / 0.9545 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.371e-05/0.6104, allocations: 8.062 kB / 0.9545 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.6107, allocations: 68.47 kB / 0.9545 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.6109, allocations: 121.4 kB / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.6111, allocations: 180.2 kB / 0.9548 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006072/0.6117, allocations: 481.9 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.6117, allocations: 0 / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6117, allocations: 1.25 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.544e-05/0.6117, allocations: 0 / 0.9553 GB, free: 4.406 MB / 0.7169 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.001395/0.6131, allocations: 0.8286 MB / 0.9561 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.6132, allocations: 16.61 kB / 0.9561 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.905e-05/0.6132, allocations: 38.06 kB / 0.9561 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.6134, allocations: 59.28 kB / 0.9562 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006005/0.614, allocations: 448.3 kB / 0.9566 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.614, allocations: 11.56 kB / 0.9566 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.614, allocations: 8.5 kB / 0.9566 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.6143, allocations: 142 kB / 0.9568 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.6144, allocations: 4 kB / 0.9568 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.6144, allocations: 5.719 kB / 0.9568 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.6144, allocations: 6.688 kB / 0.9568 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.6146, allocations: 66.88 kB / 0.9569 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008867/0.6155, allocations: 0.5754 MB / 0.9574 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.6158, allocations: 128.2 kB / 0.9575 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.6159, allocations: 42.53 kB / 0.9576 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.6159, allocations: 1.312 kB / 0.9576 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.6162, allocations: 114.9 kB / 0.9577 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.794e-06/0.6162, allocations: 0 / 0.9577 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0005459/0.6167, allocations: 233.3 kB / 0.9579 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.6168, allocations: 83.66 kB / 0.958 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008377/0.6176, allocations: 0.6808 MB / 0.9587 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.6177, allocations: 32.45 kB / 0.9587 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.6179, allocations: 264 kB / 0.9589 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.809e-05/0.6179, allocations: 45.5 kB / 0.959 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.568e-05/0.618, allocations: 52.11 kB / 0.959 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.6181, allocations: 371.3 kB / 0.9594 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.6183, allocations: 70.97 kB / 0.9595 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.6185, allocations: 121.1 kB / 0.9596 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.6187, allocations: 142.6 kB / 0.9597 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6188, allocations: 1.312 kB / 0.9597 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004636/0.6192, allocations: 260.5 kB / 0.96 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.6193, allocations: 11.73 kB / 0.96 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.6193, allocations: 0 / 0.96 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.6193, allocations: 10.78 kB / 0.96 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.6195, allocations: 42.17 kB / 0.96 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.6195, allocations: 1.938 kB / 0.96 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.6197, allocations: 25.48 kB / 0.96 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.6197, allocations: 10.03 kB / 0.96 GB, free: 0.668 MB / 0.7169 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.0002052/0.6199, allocations: 207 kB / 0.9602 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.62, allocations: 60.28 kB / 0.9603 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.783e-05/0.6201, allocations: 61.95 kB / 0.9604 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.6201, allocations: 1.375 kB / 0.9604 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.6201, allocations: 5.312 kB / 0.9604 GB, free: 432 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.6201, allocations: 3.984 kB / 0.9604 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.6204, allocations: 373.3 kB / 0.9607 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.6204, allocations: 1.344 kB / 0.9607 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.6204, allocations: 6.875 kB / 0.9607 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.6205, allocations: 0 / 0.9607 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.6205, allocations: 6.25 kB / 0.9607 GB, free: 88 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.6205, allocations: 0 / 0.9607 GB, free: 88 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.6205, allocations: 1.031 kB / 0.9607 GB, free: 88 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004183/0.6209, allocations: 224.3 kB / 0.961 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.621, allocations: 132.4 kB / 0.9611 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.35e-05/0.6211, allocations: 6.219 kB / 0.9611 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.6213, allocations: 10.2 kB / 0.9611 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.6213, allocations: 24.22 kB / 0.9611 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.6213, allocations: 4.344 kB / 0.9611 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006225/0.622, allocations: 473.1 kB / 0.9616 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.622, allocations: 1.594 kB / 0.9616 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003307/0.6223, allocations: 58.88 kB / 0.9616 GB, free: 15.51 MB / 0.7325 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.001612/0.6239, allocations: 1.088 MB / 0.9627 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003659/0.6243, allocations: 160 kB / 0.9629 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6243, allocations: 0 / 0.9629 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.6245, allocations: 56.38 kB / 0.9629 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005062/0.625, allocations: 85.5 kB / 0.963 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005702/0.6307, allocations: 4.1 MB / 0.967 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.6312, allocations: 0.8632 MB / 0.9678 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000169/0.6314, allocations: 54.55 kB / 0.9679 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/0.6316, allocations: 161.6 kB / 0.968 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of SimCode: time 1.683e-06/0.6316, allocations: 0 / 0.968 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.6553, allocations: 9.32 MB / 0.9771 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.6555, allocations: 259.6 kB / 0.9774 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.628, allocations: 0 / 0.9774 GB, free: 4.879 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > 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