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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00937/0.00937, allocations: 106.1 kB / 15.71 MB, free: 6.008 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.001893/0.001893, allocations: 196 kB / 16.65 MB, free: 5.941 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.396/1.396, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.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.442/2.442, allocations: 390.3 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 56.12 kB / 0.9509 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.057, allocations: 140.4 MB / 1.088 GB, free: 5.465 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004265/1.061, allocations: 2.465 MB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00254/1.064, allocations: 1.569 MB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/1.064, allocations: 7.094 kB / 1.092 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001068/1.065, allocations: 317.5 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000477/1.066, allocations: 226.5 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007617/1.067, allocations: 261.9 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005616/1.067, allocations: 389.7 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/1.067, allocations: 79.09 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/1.068, allocations: 158.7 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/1.068, allocations: 163.4 kB / 1.093 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/1.068, allocations: 18.72 kB / 1.093 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/1.068, allocations: 80.94 kB / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001741/1.068, allocations: 125.6 kB / 1.094 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001776/1.069, allocations: 199.1 kB / 1.094 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007067/1.069, allocations: 0.4908 MB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.069, allocations: 0.7969 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/1.069, allocations: 0.7812 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.567e-06/1.069, allocations: 0 / 1.094 GB, free: 1.504 MB / 0.8575 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.00129/1.071, allocations: 0.8217 MB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/1.071, allocations: 9.156 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/1.071, allocations: 64.48 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/1.071, allocations: 441 kB / 1.096 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/1.071, allocations: 13.03 kB / 1.096 GB, free: 452 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/1.071, allocations: 12.83 kB / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/1.072, allocations: 133.6 kB / 1.096 GB, free: 372 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/1.072, allocations: 4.531 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/1.072, allocations: 5.531 kB / 1.096 GB, free: 364 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/1.072, allocations: 10.41 kB / 1.096 GB, free: 356 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/1.072, allocations: 69.89 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/1.073, allocations: 0.5693 MB / 1.096 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003744/1.073, allocations: 126.3 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/1.074, allocations: 45.22 kB / 1.097 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/1.074, allocations: 6.297 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/1.074, allocations: 123.4 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/1.074, allocations: 1 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0006135/1.075, allocations: 237.2 kB / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.162e-05/1.075, allocations: 79.86 kB / 1.097 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000969/1.076, allocations: 0.6763 MB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/1.076, allocations: 32.69 kB / 1.098 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000233/1.076, allocations: 265.7 kB / 1.098 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/1.076, allocations: 36.94 kB / 1.098 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/1.076, allocations: 58.89 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001841/1.076, allocations: 370.3 kB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/1.076, allocations: 74.59 kB / 1.098 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/1.077, allocations: 119.2 kB / 1.099 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/1.077, allocations: 135.5 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.077, allocations: 12.94 kB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005152/1.077, allocations: 266.8 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/1.077, allocations: 9.938 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/1.077, allocations: 1.125 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/1.077, allocations: 1.562 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/1.078, allocations: 35.64 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/1.078, allocations: 2.547 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/1.078, allocations: 25.98 kB / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.784e-05/1.078, allocations: 11.27 kB / 1.099 GB, free: 14.31 MB / 0.8731 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.0002533/1.078, allocations: 209.9 kB / 1.099 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/1.078, allocations: 56.86 kB / 1.099 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/1.078, allocations: 58.22 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/1.078, allocations: 2.453 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/1.078, allocations: 0 / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/1.078, allocations: 1.656 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004951/1.079, allocations: 370.5 kB / 1.1 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/1.079, allocations: 7.938 kB / 1.1 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.364e-05/1.079, allocations: 12.31 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.079, allocations: 0 / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/1.079, allocations: 7.625 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/1.079, allocations: 1.656 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.079, allocations: 0 / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004381/1.079, allocations: 214.5 kB / 1.1 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/1.08, allocations: 138 kB / 1.1 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/1.08, allocations: 11.89 kB / 1.1 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/1.08, allocations: 8.688 kB / 1.1 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.369e-05/1.08, allocations: 18.41 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/1.08, allocations: 5.828 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006715/1.081, allocations: 470.3 kB / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/1.081, allocations: 0 / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004178/1.081, allocations: 64.98 kB / 1.101 GB, free: 13.35 MB / 0.8731 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.001288/1.082, allocations: 448 kB / 1.101 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004744/1.083, allocations: 153.8 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.083, allocations: 0 / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/1.083, allocations: 54.66 kB / 1.101 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/1.084, allocations: 94.44 kB / 1.101 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/1.086, allocations: 0.8204 MB / 1.102 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008796/1.087, allocations: 0.8644 MB / 1.103 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002116/1.087, allocations: 49.72 kB / 1.103 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/1.087, allocations: 33.47 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.087, allocations: 0 / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of Templates: time 0.0135/1.1, allocations: 4.357 MB / 1.107 GB, free: 11.46 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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 & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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