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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_10_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.00186/0.00186, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001242/0.001242, allocations: 196.6 kB / 16.25 MB, free: 6.625 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.232/1.232, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.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.399/2.399, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 63.91 kB / 0.8689 GB, free: 5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.538/0.5394, allocations: 151.6 MB / 1.017 GB, free: 2.867 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003244/0.5426, allocations: 2.513 MB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001879/0.5445, allocations: 1.553 MB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.5447, allocations: 4 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007297/0.5454, allocations: 307 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003479/0.5458, allocations: 203.3 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005096/0.5463, allocations: 239.5 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.5466, allocations: 390.8 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.5468, allocations: 71.09 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.5469, allocations: 167.2 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.5471, allocations: 171.2 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.418e-05/0.5472, allocations: 20 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.5473, allocations: 79.89 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.5474, allocations: 127.5 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.5476, allocations: 198.6 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003975/0.548, allocations: 494.1 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.548, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.242e-06/0.548, allocations: 4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.548, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 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.0009433/0.5489, allocations: 0.8259 MB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.549, allocations: 8.031 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.836e-05/0.549, allocations: 50.67 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.5491, allocations: 60.19 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.5495, allocations: 436.5 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.5496, allocations: 12 kB / 1.025 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.5496, allocations: 12 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.5499, allocations: 143.2 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.5499, allocations: 0 / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.5499, allocations: 11.92 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.5499, allocations: 7.875 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001536/0.5501, allocations: 67.97 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007062/0.5508, allocations: 0.5705 MB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.5511, allocations: 134.7 kB / 1.026 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.436e-05/0.5512, allocations: 40.84 kB / 1.026 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.5512, allocations: 4 kB / 1.026 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.5514, allocations: 107.5 kB / 1.026 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.5514, allocations: 0 / 1.026 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0004528/0.5519, allocations: 240.8 kB / 1.026 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.5519, allocations: 81.11 kB / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006272/0.5526, allocations: 0.6876 MB / 1.027 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.5526, allocations: 33.7 kB / 1.027 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.5528, allocations: 264.3 kB / 1.027 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.165e-05/0.5528, allocations: 31.55 kB / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.681e-05/0.5529, allocations: 57.69 kB / 1.027 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.553, allocations: 370.8 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.5531, allocations: 75.97 kB / 1.027 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.5533, allocations: 122.6 kB / 1.028 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.5535, allocations: 142.3 kB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5535, allocations: 4 kB / 1.028 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003824/0.5539, allocations: 270.8 kB / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.5539, allocations: 4 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.554, allocations: 3.938 kB / 1.028 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.554, allocations: 4 kB / 1.028 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.5541, allocations: 31.92 kB / 1.028 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.5541, allocations: 7.984 kB / 1.028 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.5543, allocations: 19.98 kB / 1.028 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.5543, allocations: 16 kB / 1.028 GB, free: 7.176 MB / 0.7794 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.0001847/0.5545, allocations: 208 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.5546, allocations: 59.19 kB / 1.028 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.298e-05/0.5547, allocations: 57.05 kB / 1.028 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.5547, allocations: 8 kB / 1.028 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.5547, allocations: 0 / 1.028 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.5547, allocations: 0 / 1.028 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.555, allocations: 369.4 kB / 1.029 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.555, allocations: 4 kB / 1.029 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-05/0.555, allocations: 11.98 kB / 1.029 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.555, allocations: 0 / 1.029 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.555, allocations: 0 / 1.029 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.555, allocations: 7.938 kB / 1.029 GB, free: 6.406 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.555, allocations: 0 / 1.029 GB, free: 6.406 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.5554, allocations: 225.5 kB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-05/0.5555, allocations: 124.4 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.982e-05/0.5555, allocations: 15.98 kB / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.5556, allocations: 7.984 kB / 1.029 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.5557, allocations: 15.98 kB / 1.029 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.5557, allocations: 8 kB / 1.029 GB, free: 5.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004262/0.5561, allocations: 467 kB / 1.03 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5561, allocations: 0 / 1.03 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002777/0.5564, allocations: 71.89 kB / 1.03 GB, free: 5.457 MB / 0.7794 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.001329/0.5578, allocations: 1.091 MB / 1.031 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003149/0.5581, allocations: 159.9 kB / 1.031 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5581, allocations: 0 / 1.031 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.5582, allocations: 56.05 kB / 1.031 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.5587, allocations: 97.8 kB / 1.031 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004087/0.5628, allocations: 4.094 MB / 1.035 GB, free: 0 / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.5631, allocations: 0.8649 MB / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001272/0.5633, allocations: 54.94 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.5634, allocations: 167.4 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of SimCode: time 2.11e-07/0.5635, allocations: 0 / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.912/2.475, allocations: 9.48 MB / 1.045 GB, free: 5.613 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003107/2.476, allocations: 254.5 kB / 1.046 GB, free: 5.355 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/4.818, allocations: 6.547 kB / 1.046 GB, free: 5.355 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > 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