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.001285/0.001285, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.466/2.466, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4927/0.494, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004916/0.4989, allocations: 2.46 MB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002714/0.5017, allocations: 1.58 MB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003201/0.5021, allocations: 7.938 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009025/0.503, allocations: 322.8 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004976/0.5035, allocations: 215.1 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.5042, allocations: 263.1 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.5047, allocations: 386.8 kB / 1.023 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.5049, allocations: 66.97 kB / 1.023 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.5051, allocations: 163.2 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.5053, allocations: 163.2 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.144e-05/0.5054, allocations: 24 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.5056, allocations: 75.95 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.5057, allocations: 131.5 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.5059, allocations: 182.7 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.5064, allocations: 498.1 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.5064, allocations: 0 / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5064, allocations: 0 / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.517e-05/0.5065, allocations: 0 / 1.024 GB, free: 11.99 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.001152/0.5076, allocations: 0.8414 MB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.5077, allocations: 8.031 kB / 1.025 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.5077, allocations: 42.73 kB / 1.025 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.436e-05/0.5078, allocations: 60.19 kB / 1.025 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.5083, allocations: 436.5 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.5083, allocations: 12 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/0.5084, allocations: 4 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.5087, allocations: 144.6 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.5087, allocations: 3.938 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.5087, allocations: 11.98 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.5087, allocations: 7.938 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.5089, allocations: 67.91 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007788/0.5097, allocations: 0.5745 MB / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002945/0.51, allocations: 122.7 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.5101, allocations: 48.84 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.5101, allocations: 0 / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.5103, allocations: 119.5 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.5104, allocations: 0 / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0004789/0.5108, allocations: 228.9 kB / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.5109, allocations: 77.11 kB / 1.026 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006766/0.5116, allocations: 0.6915 MB / 1.027 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.5116, allocations: 29.7 kB / 1.027 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.5118, allocations: 268.3 kB / 1.027 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.5118, allocations: 35.55 kB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.104e-05/0.5119, allocations: 57.69 kB / 1.028 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.512, allocations: 370.8 kB / 1.028 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.5122, allocations: 71.97 kB / 1.028 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.5124, allocations: 130.4 kB / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.5126, allocations: 133.5 kB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.5127, allocations: 7.938 kB / 1.028 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004317/0.5131, allocations: 264.8 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.5131, allocations: 11.94 kB / 1.028 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.5131, allocations: 4.062 kB / 1.028 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.5132, allocations: 0 / 1.028 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.5133, allocations: 39.92 kB / 1.028 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.5133, allocations: 3.984 kB / 1.029 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.5135, allocations: 19.92 kB / 1.029 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.5135, allocations: 8 kB / 1.029 GB, free: 6.812 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.000191/0.5137, allocations: 211.5 kB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.506e-05/0.5138, allocations: 67.19 kB / 1.029 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.596e-05/0.5139, allocations: 57.05 kB / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.5139, allocations: 0 / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.5139, allocations: 0 / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5139, allocations: 0 / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.5142, allocations: 369.4 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5142, allocations: 0 / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.84e-05/0.5142, allocations: 11.98 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.5143, allocations: 4 kB / 1.029 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.5143, allocations: 3.938 kB / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5143, allocations: 0 / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.5143, allocations: 4 kB / 1.029 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003436/0.5146, allocations: 228.1 kB / 1.029 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.903e-05/0.5147, allocations: 128.4 kB / 1.03 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.5148, allocations: 7.984 kB / 1.03 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.5149, allocations: 11.98 kB / 1.03 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.515, allocations: 15.98 kB / 1.03 GB, free: 5.621 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.515, allocations: 8 kB / 1.03 GB, free: 5.613 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004669/0.5155, allocations: 467 kB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5155, allocations: 0 / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002995/0.5158, allocations: 71.89 kB / 1.03 GB, free: 5.09 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.00141/0.5172, allocations: 1.096 MB / 1.031 GB, free: 4.129 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003495/0.5176, allocations: 159.8 kB / 1.031 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5176, allocations: 0 / 1.031 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.5177, allocations: 51.98 kB / 1.031 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004625/0.5182, allocations: 91.25 kB / 1.031 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.5225, allocations: 4.002 MB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.5229, allocations: 0.8697 MB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001396/0.5231, allocations: 46.94 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.5233, allocations: 167.4 kB / 1.036 GB, free: 14.63 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.5233, allocations: 0 / 1.036 GB, free: 14.63 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8376/1.361, allocations: 9.666 MB / 1.046 GB, free: 5.129 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/11.53, allocations: 11.81 kB / 1.046 GB, free: 5.117 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