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: "" <> 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.00122/0.001221, allocations: 107.3 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.001333/0.001333, allocations: 189 kB / 16.25 MB, free: 6.152 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.342/1.342, allocations: 222.9 MB / 239.9 MB, free: 4.434 MB / 190.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.221/2.221, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 59.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5181/0.5196, allocations: 140.4 MB / 0.9492 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002962/0.5226, allocations: 2.497 MB / 0.9517 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001819/0.5244, allocations: 1.539 MB / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.5246, allocations: 6.188 kB / 0.9532 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007492/0.5254, allocations: 324.1 kB / 0.9535 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003854/0.5258, allocations: 196.8 kB / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000561/0.5264, allocations: 239 kB / 0.9539 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003707/0.5267, allocations: 397.1 kB / 0.9543 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.5269, allocations: 71.91 kB / 0.9544 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.5271, allocations: 160.8 kB / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.5273, allocations: 175.9 kB / 0.9547 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/0.5273, allocations: 18.16 kB / 0.9547 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001605/0.5275, allocations: 81.55 kB / 0.9548 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.5276, allocations: 133.2 kB / 0.9549 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.5277, allocations: 195.3 kB / 0.9551 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000391/0.5281, allocations: 496.9 kB / 0.9556 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.5281, allocations: 0 / 0.9556 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5281, allocations: 0 / 0.9556 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.5282, allocations: 1.375 kB / 0.9556 GB, free: 4.367 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.0008895/0.529, allocations: 0.8277 MB / 0.9564 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.5291, allocations: 9 kB / 0.9564 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.096e-05/0.5291, allocations: 50.3 kB / 0.9564 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.616e-05/0.5292, allocations: 59.75 kB / 0.9565 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.5296, allocations: 435.4 kB / 0.9569 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.5296, allocations: 8.406 kB / 0.9569 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.5297, allocations: 15.39 kB / 0.9569 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.5299, allocations: 140.8 kB / 0.9571 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.5299, allocations: 1.062 kB / 0.9571 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.53, allocations: 5.219 kB / 0.9571 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.53, allocations: 10.06 kB / 0.9571 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001487/0.5301, allocations: 67.84 kB / 0.9571 GB, free: 3 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.5308, allocations: 0.5676 MB / 0.9577 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002601/0.5311, allocations: 127 kB / 0.9578 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.996e-05/0.5312, allocations: 47.91 kB / 0.9579 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.5312, allocations: 5.438 kB / 0.9579 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.5314, allocations: 117.1 kB / 0.958 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.513e-06/0.5314, allocations: 0 / 0.958 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004537/0.5319, allocations: 230.5 kB / 0.9582 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.5319, allocations: 79.86 kB / 0.9583 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007019/0.5326, allocations: 0.688 MB / 0.9589 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.5326, allocations: 32.92 kB / 0.959 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.5328, allocations: 263.3 kB / 0.9592 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.5328, allocations: 41.59 kB / 0.9593 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.355e-05/0.5329, allocations: 56.52 kB / 0.9593 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.301e-05/0.533, allocations: 370.9 kB / 0.9597 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.5331, allocations: 71.5 kB / 0.9597 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.5333, allocations: 120 kB / 0.9599 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.5335, allocations: 143.2 kB / 0.96 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.5335, allocations: 1.094 kB / 0.96 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000389/0.5339, allocations: 265.3 kB / 0.9602 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.5339, allocations: 5.438 kB / 0.9603 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.5339, allocations: 5.094 kB / 0.9603 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.5339, allocations: 0.9062 kB / 0.9603 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.5341, allocations: 39.44 kB / 0.9603 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.5341, allocations: 5.547 kB / 0.9603 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.5343, allocations: 33.61 kB / 0.9603 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.5343, allocations: 6.875 kB / 0.9603 GB, free: 0.6289 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.0001607/0.5344, allocations: 206.7 kB / 0.9605 GB, free: 480 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.5345, allocations: 60.16 kB / 0.9606 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.134e-05/0.5346, allocations: 57.98 kB / 0.9606 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.5346, allocations: 5.031 kB / 0.9607 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.5346, allocations: 1.094 kB / 0.9607 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.5346, allocations: 0 / 0.9607 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.5349, allocations: 377.4 kB / 0.961 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5349, allocations: 1.25 kB / 0.961 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.504e-05/0.5349, allocations: 14.03 kB / 0.961 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.5349, allocations: 5.359 kB / 0.961 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.5349, allocations: 1.531 kB / 0.961 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.5349, allocations: 1.469 kB / 0.961 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5349, allocations: 0 / 0.961 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00035/0.5353, allocations: 232.9 kB / 0.9613 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.48e-05/0.5354, allocations: 127.8 kB / 0.9614 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.5355, allocations: 6.594 kB / 0.9614 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.5356, allocations: 10.11 kB / 0.9614 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.5356, allocations: 15.17 kB / 0.9614 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.5357, allocations: 5.344 kB / 0.9614 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004733/0.5361, allocations: 469.1 kB / 0.9619 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.332e-06/0.5362, allocations: 4 kB / 0.9619 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002969/0.5365, allocations: 76.67 kB / 0.9619 GB, free: 15.45 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.001312/0.5378, allocations: 1.071 MB / 0.963 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003369/0.5381, allocations: 162.7 kB / 0.9631 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5381, allocations: 1.156 kB / 0.9631 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.5383, allocations: 55.48 kB / 0.9632 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.5387, allocations: 86.94 kB / 0.9633 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004593/0.5433, allocations: 4.112 MB / 0.9673 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.5437, allocations: 0.8677 MB / 0.9681 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001338/0.5438, allocations: 51.42 kB / 0.9682 GB, free: 11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.544, allocations: 166.2 kB / 0.9683 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.544, allocations: 3.938 kB / 0.9684 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.394/2.938, allocations: 9.482 MB / 0.9776 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002317/2.938, allocations: 245.3 kB / 0.9778 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.616/5.554, allocations: 0 / 0.9778 GB, free: 4.586 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