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: 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.001326/0.001326, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.001465/0.001465, allocations: 189.5 kB / 17.34 MB, free: 5.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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.316/2.316, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 63.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8729/0.8744, allocations: 140.4 MB / 1.089 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004299/0.8787, allocations: 2.454 MB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002367/0.8811, allocations: 1.573 MB / 1.093 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.8813, allocations: 7.125 kB / 1.093 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.8824, allocations: 321.2 kB / 1.093 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.8829, allocations: 210.3 kB / 1.093 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007339/0.8836, allocations: 271.6 kB / 1.093 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000478/0.8841, allocations: 398 kB / 1.094 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.8843, allocations: 70.55 kB / 1.094 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.8845, allocations: 166.4 kB / 1.094 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.8847, allocations: 160.5 kB / 1.094 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.8848, allocations: 19.09 kB / 1.094 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002178/0.885, allocations: 81.41 kB / 1.094 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.8852, allocations: 125.8 kB / 1.094 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.8853, allocations: 202.4 kB / 1.094 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006299/0.886, allocations: 0.4911 MB / 1.095 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.886, allocations: 0.7812 kB / 1.095 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.463e-06/0.886, allocations: 0 / 1.095 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.886, allocations: 4 kB / 1.095 GB, free: 1.816 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.001156/0.8872, allocations: 0.8257 MB / 1.096 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.8872, allocations: 10.19 kB / 1.096 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.8873, allocations: 59.17 kB / 1.096 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005308/0.8879, allocations: 437.9 kB / 1.096 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.8879, allocations: 12.81 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.8879, allocations: 20.23 kB / 1.096 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.8882, allocations: 134.2 kB / 1.096 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.8883, allocations: 0 / 1.096 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.8883, allocations: 6.203 kB / 1.096 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.8883, allocations: 6.469 kB / 1.096 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.8885, allocations: 65.55 kB / 1.097 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008903/0.8894, allocations: 0.5737 MB / 1.097 GB, free: 256 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.8897, allocations: 129.4 kB / 1.097 GB, free: 188 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.8898, allocations: 44.83 kB / 1.097 GB, free: 168 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.8899, allocations: 6.734 kB / 1.097 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.8901, allocations: 108.5 kB / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.8902, allocations: 0 / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0005863/0.8907, allocations: 241.7 kB / 1.098 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.8908, allocations: 79.08 kB / 1.098 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009518/0.8918, allocations: 0.6808 MB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.8918, allocations: 37.08 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.892, allocations: 265.6 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.8921, allocations: 37.31 kB / 1.099 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.889e-05/0.8922, allocations: 54.44 kB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.8924, allocations: 369.4 kB / 1.099 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.8925, allocations: 71.91 kB / 1.099 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.8928, allocations: 122.2 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.893, allocations: 136.7 kB / 1.099 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.893, allocations: 5.188 kB / 1.099 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004821/0.8935, allocations: 270.2 kB / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.8936, allocations: 6.672 kB / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.8936, allocations: 4 kB / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.8936, allocations: 2.156 kB / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.8938, allocations: 35.84 kB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.8938, allocations: 1.844 kB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.894, allocations: 26.11 kB / 1.1 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.894, allocations: 7.625 kB / 1.1 GB, free: 14.63 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.0002572/0.8943, allocations: 213.8 kB / 1.1 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.826e-05/0.8944, allocations: 60.94 kB / 1.1 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.8945, allocations: 65.52 kB / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.8945, allocations: 2.875 kB / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.8945, allocations: 0 / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.8945, allocations: 1.797 kB / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004365/0.895, allocations: 369.5 kB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.895, allocations: 12.47 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.914e-05/0.895, allocations: 8.281 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.895, allocations: 0.9062 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.895, allocations: 6.891 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.8951, allocations: 5.547 kB / 1.1 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8951, allocations: 0.875 kB / 1.1 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003856/0.8955, allocations: 221.9 kB / 1.101 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.8956, allocations: 133.4 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.656e-05/0.8957, allocations: 8.312 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.8958, allocations: 8.578 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/0.8959, allocations: 17.47 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.8959, allocations: 11.38 kB / 1.101 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0007291/0.8967, allocations: 468.7 kB / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8967, allocations: 0 / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004032/0.8971, allocations: 65.84 kB / 1.101 GB, free: 13.65 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.001087/0.8982, allocations: 437.5 kB / 1.102 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003874/0.8986, allocations: 157.2 kB / 1.102 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8986, allocations: 1.062 kB / 1.102 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.8987, allocations: 54.28 kB / 1.102 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.8993, allocations: 88.66 kB / 1.102 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.9008, allocations: 0.8716 MB / 1.103 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.9013, allocations: 0.8623 MB / 1.104 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.224e-05/0.9014, allocations: 27.61 kB / 1.104 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of SimCode: time 3.91e-07/0.9014, allocations: 1.125 kB / 1.104 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of Templates: time 0.01136/0.9128, allocations: 5.754 MB / 1.109 GB, free: 11.16 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/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