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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001232/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001348/0.001348, allocations: 197.1 kB / 16.14 MB, free: 6.719 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.381/2.381, allocations: 437 MB / 0.7099 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.91 kB / 0.8687 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5738/0.5751, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003603/0.5787, allocations: 2.509 MB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002066/0.5808, allocations: 1.554 MB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.5809, allocations: 7.938 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007962/0.5817, allocations: 307 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003321/0.5821, allocations: 183.4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.5826, allocations: 254.5 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.5829, allocations: 378.7 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.5831, allocations: 74.89 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.5833, allocations: 143.3 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.5834, allocations: 159.2 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.5835, allocations: 8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.5836, allocations: 67.95 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.5838, allocations: 123.5 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.5839, allocations: 178.6 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.5843, allocations: 486.1 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.5844, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.62e-07/0.5844, allocations: 8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.5844, allocations: 0 / 1.023 GB, free: 12.38 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.001029/0.5854, allocations: 0.822 MB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.5854, allocations: 12.03 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.987e-05/0.5855, allocations: 38.75 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.5856, allocations: 64.17 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/0.586, allocations: 444.4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.5861, allocations: 8 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.5861, allocations: 12 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.5864, allocations: 135.3 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.5864, allocations: 0 / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.5864, allocations: 8 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.5864, allocations: 3.938 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.5866, allocations: 71.89 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/0.5874, allocations: 0.5822 MB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/0.5877, allocations: 118.8 kB / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.5878, allocations: 48.83 kB / 1.025 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.5878, allocations: 4 kB / 1.025 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002148/0.588, allocations: 111.5 kB / 1.025 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.588, allocations: 0 / 1.025 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0004833/0.5885, allocations: 232.9 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.5886, allocations: 81.11 kB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006812/0.5893, allocations: 0.6837 MB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.5893, allocations: 37.69 kB / 1.026 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.5895, allocations: 264.3 kB / 1.027 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.5895, allocations: 31.55 kB / 1.027 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.5896, allocations: 65.62 kB / 1.027 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5897, allocations: 366.8 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.5899, allocations: 75.97 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.5901, allocations: 122.6 kB / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.5903, allocations: 144.8 kB / 1.027 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5903, allocations: 4 kB / 1.027 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004151/0.5908, allocations: 272.8 kB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.5908, allocations: 4 kB / 1.028 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.5908, allocations: 0 / 1.028 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.5908, allocations: 4 kB / 1.028 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.591, allocations: 31.98 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.591, allocations: 3.984 kB / 1.028 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.5911, allocations: 23.83 kB / 1.028 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.5912, allocations: 16.06 kB / 1.028 GB, free: 7.215 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.0001973/0.5914, allocations: 216 kB / 1.028 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.329e-05/0.5914, allocations: 55.28 kB / 1.028 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.363e-05/0.5915, allocations: 61.03 kB / 1.028 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5915, allocations: 4 kB / 1.028 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.5915, allocations: 0 / 1.028 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.5915, allocations: 0 / 1.028 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/0.5918, allocations: 369.4 kB / 1.028 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.5919, allocations: 4 kB / 1.028 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.846e-05/0.5919, allocations: 11.94 kB / 1.028 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5919, allocations: 0 / 1.028 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.5919, allocations: 7.984 kB / 1.028 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5919, allocations: 0 / 1.028 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5919, allocations: 0 / 1.028 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003399/0.5923, allocations: 220.3 kB / 1.029 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/0.5924, allocations: 128.4 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.362e-05/0.5924, allocations: 12 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.5926, allocations: 15.98 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.5926, allocations: 15.97 kB / 1.029 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.5926, allocations: 4 kB / 1.029 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004891/0.5931, allocations: 467 kB / 1.029 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5931, allocations: 0 / 1.029 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002943/0.5934, allocations: 67.89 kB / 1.029 GB, free: 5.496 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.001453/0.5949, allocations: 1.087 MB / 1.03 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003291/0.5952, allocations: 155.9 kB / 1.031 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.5953, allocations: 0 / 1.031 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.5954, allocations: 60.03 kB / 1.031 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.5959, allocations: 85.62 kB / 1.031 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.6006, allocations: 4.095 MB / 1.035 GB, free: 52 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004538/0.601, allocations: 0.8688 MB / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001491/0.6012, allocations: 50.95 kB / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.6014, allocations: 167.4 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.6014, allocations: 3.938 kB / 1.036 GB, free: 14.94 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.53/1.131, allocations: 9.32 MB / 1.045 GB, free: 5.816 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/1.132, allocations: 252.9 kB / 1.045 GB, free: 5.562 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.117/3.248, allocations: 0 / 1.045 GB, free: 5.562 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