Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.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.Media.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck") translateModel(Buildings.Media.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009912/0.0009912, allocations: 92.08 kB / 16.02 MB, free: 80 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.0009954/0.0009956, allocations: 180.6 kB / 16.92 MB, free: 6.652 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.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.607/2.607, allocations: 390.9 MB / 0.667 GB, free: 2.301 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003504, allocations: 16 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6801/0.6804, allocations: 142.4 MB / 0.9557 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.001074/0.6816, allocations: 0.9867 MB / 0.9566 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1409/0.8225, allocations: 134.3 MB / 1.088 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.274e-05/0.8226, allocations: 4 kB / 1.088 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.949e-05/0.8226, allocations: 3.938 kB / 1.088 GB, free: 7.574 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.296e-05/0.8227, allocations: 4 kB / 1.088 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.8237, allocations: 374.6 kB / 1.088 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.493e-05/0.8238, allocations: 43.89 kB / 1.088 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.002e-05/0.8238, allocations: 0 / 1.088 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.063e-05/0.8239, allocations: 19.98 kB / 1.088 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.574e-05/0.8239, allocations: 23.91 kB / 1.088 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.824, allocations: 8 kB / 1.088 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.8253, allocations: 0.8114 MB / 1.089 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.583e-05/0.8253, allocations: 8 kB / 1.089 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.204e-05/0.8253, allocations: 53.61 kB / 1.089 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.8257, allocations: 289.4 kB / 1.089 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8257, allocations: 0 / 1.089 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.775e-06/0.8257, allocations: 7.938 kB / 1.089 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.8257, allocations: 0 / 1.089 GB, free: 5.941 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004074/0.8261, allocations: 363.4 kB / 1.09 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.8262, allocations: 8.031 kB / 1.09 GB, free: 5.531 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.8263, allocations: 8.938 kB / 1.09 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.773e-05/0.8264, allocations: 164.4 kB / 1.09 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.8265, allocations: 8.375 kB / 1.09 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.8265, allocations: 12.11 kB / 1.09 GB, free: 5.305 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.8266, allocations: 49.69 kB / 1.09 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.8266, allocations: 0 / 1.09 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.8266, allocations: 0 / 1.09 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.8266, allocations: 0 / 1.09 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.374e-05/0.8267, allocations: 31.89 kB / 1.09 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.8269, allocations: 165.6 kB / 1.09 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.724e-05/0.827, allocations: 54.56 kB / 1.09 GB, free: 4.945 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.14e-05/0.827, allocations: 24.78 kB / 1.09 GB, free: 4.918 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01067/0.8377, allocations: 3.198 MB / 1.093 GB, free: 1.625 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.8377, allocations: 38.56 kB / 1.093 GB, free: 1.578 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.8378, allocations: 4 kB / 1.093 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.03857/0.8763, allocations: 14.25 MB / 1.107 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.8764, allocations: 55.34 kB / 1.107 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.138e-05/0.8765, allocations: 93.86 kB / 1.107 GB, free: 3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.8765, allocations: 29.7 kB / 1.107 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.665e-05/0.8765, allocations: 84.14 kB / 1.108 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.733e-05/0.8766, allocations: 43.38 kB / 1.108 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.8766, allocations: 17.72 kB / 1.108 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.8767, allocations: 322.8 kB / 1.108 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.035e-05/0.8768, allocations: 19.98 kB / 1.108 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.244e-05/0.8769, allocations: 24 kB / 1.108 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.877, allocations: 64.22 kB / 1.108 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.877, allocations: 0 / 1.108 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002108/0.8772, allocations: 113.5 kB / 1.108 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.8772, allocations: 7.984 kB / 1.108 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.8772, allocations: 0 / 1.108 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.8773, allocations: 0 / 1.108 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.8774, allocations: 23.94 kB / 1.108 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.8774, allocations: 0 / 1.108 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.987e-05/0.8774, allocations: 11.98 kB / 1.108 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.8774, allocations: 4 kB / 1.108 GB, free: 2.219 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 8.047e-05/0.8775, allocations: 121.7 kB / 1.108 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.807e-05/0.8776, allocations: 4 kB / 1.108 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.8778, allocations: 117.6 kB / 1.108 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.8779, allocations: 0 / 1.108 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.8779, allocations: 0 / 1.108 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.8779, allocations: 11.92 kB / 1.108 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.878, allocations: 177.6 kB / 1.109 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.878, allocations: 0 / 1.109 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.8781, allocations: 23.98 kB / 1.109 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.8782, allocations: 7.938 kB / 1.109 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.8782, allocations: 8 kB / 1.109 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.8782, allocations: 0 / 1.109 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.8782, allocations: 0 / 1.109 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.8785, allocations: 165 kB / 1.109 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.089e-05/0.8785, allocations: 89.05 kB / 1.109 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.8786, allocations: 0 / 1.109 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.8787, allocations: 19.98 kB / 1.109 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.372e-05/0.8787, allocations: 7.984 kB / 1.109 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.8788, allocations: 8 kB / 1.109 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.827e-05/0.8788, allocations: 79.28 kB / 1.109 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8788, allocations: 0 / 1.109 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001717/0.8805, allocations: 0.5624 MB / 1.11 GB, free: 0.7344 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hVapSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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 Backend phase and start with SimCode phase: time 0.002862/0.8834, allocations: 359 kB / 1.11 GB, free: 384 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001724/0.8836, allocations: 59.97 kB / 1.11 GB, free: 324 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.8836, allocations: 0 / 1.11 GB, free: 324 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.934e-05/0.8836, allocations: 35.92 kB / 1.11 GB, free: 288 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.8839, allocations: 11.94 kB / 1.11 GB, free: 276 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006235/0.8845, allocations: 444.1 kB / 1.11 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.8847, allocations: 0.6848 MB / 1.111 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.557e-05/0.8847, allocations: 19.44 kB / 1.111 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.8847, allocations: 0 / 1.111 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of Templates: time 0.02209/0.9068, allocations: 14.32 MB / 1.125 GB, free: 0.7617 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches