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.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.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.001833/0.001833, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002149/0.002149, allocations: 191.2 kB / 16.25 MB, free: 6.633 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.435/1.435, allocations: 222.9 MB / 239.9 MB, free: 4.461 MB / 190.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.49/2.49, allocations: 390.2 MB / 0.6643 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 59.91 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6987/0.7002, allocations: 140.4 MB / 0.9491 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.0025/0.7027, allocations: 1.315 MB / 0.9504 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1811/0.8839, allocations: 135.7 MB / 1.083 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.737e-05/0.884, allocations: 0 / 1.083 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.884, allocations: 3.938 kB / 1.083 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.8e-05/0.8841, allocations: 0 / 1.083 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.8859, allocations: 414.7 kB / 1.083 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.118e-05/0.886, allocations: 35.91 kB / 1.083 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.068e-05/0.886, allocations: 8 kB / 1.083 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.734e-05/0.8861, allocations: 15.98 kB / 1.083 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.8862, allocations: 23.91 kB / 1.083 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.8862, allocations: 0 / 1.083 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.8879, allocations: 0.8192 MB / 1.084 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.153e-05/0.8879, allocations: 7.984 kB / 1.084 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.634e-05/0.888, allocations: 19.92 kB / 1.084 GB, free: 7.176 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008129/0.8888, allocations: 449 kB / 1.085 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.8888, allocations: 0 / 1.085 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8888, allocations: 0 / 1.085 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.8888, allocations: 0 / 1.085 GB, free: 6.738 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.0007036/0.8896, allocations: 379.4 kB / 1.085 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.8896, allocations: 8.031 kB / 1.085 GB, free: 6.312 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.8898, allocations: 20.92 kB / 1.085 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.8899, allocations: 160.4 kB / 1.085 GB, free: 6.098 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.89, allocations: 8.375 kB / 1.085 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.89, allocations: 12.03 kB / 1.085 GB, free: 6.078 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.8902, allocations: 61.59 kB / 1.085 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.8902, allocations: 0 / 1.085 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.8902, allocations: 0 / 1.085 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.8902, allocations: 3.938 kB / 1.085 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.789e-05/0.8903, allocations: 19.98 kB / 1.085 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002/0.8905, allocations: 173.6 kB / 1.085 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/0.8907, allocations: 46.56 kB / 1.086 GB, free: 5.715 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.238e-05/0.8907, allocations: 20.8 kB / 1.086 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/0.9018, allocations: 3.159 MB / 1.089 GB, free: 2.438 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.799e-05/0.9019, allocations: 46.5 kB / 1.089 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 3.396e-06/0.9019, allocations: 0 / 1.089 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.05385/0.9558, allocations: 14.86 MB / 1.103 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.9559, allocations: 51.41 kB / 1.103 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.945e-05/0.956, allocations: 93.84 kB / 1.103 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.956, allocations: 29.83 kB / 1.103 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.9561, allocations: 92.08 kB / 1.103 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.9561, allocations: 39.39 kB / 1.103 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.046e-05/0.9562, allocations: 29.72 kB / 1.103 GB, free: 3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.9564, allocations: 322.8 kB / 1.104 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.504e-05/0.9565, allocations: 23.98 kB / 1.104 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.969e-05/0.9566, allocations: 20 kB / 1.104 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.9567, allocations: 70.28 kB / 1.104 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.9568, allocations: 0 / 1.104 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003261/0.9571, allocations: 102.1 kB / 1.104 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.9571, allocations: 8 kB / 1.104 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.9572, allocations: 7.969 kB / 1.104 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.9572, allocations: 0 / 1.104 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.9573, allocations: 28 kB / 1.104 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.9574, allocations: 0 / 1.104 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.726e-05/0.9574, allocations: 0 / 1.104 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.9574, allocations: 7.984 kB / 1.104 GB, free: 2.406 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 0.0001159/0.9576, allocations: 121.7 kB / 1.104 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.188e-05/0.9576, allocations: 8 kB / 1.104 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003711/0.958, allocations: 117.5 kB / 1.104 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.958, allocations: 4 kB / 1.104 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.9581, allocations: 0 / 1.104 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.9581, allocations: 0 / 1.104 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.9583, allocations: 185.6 kB / 1.104 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.9583, allocations: 0 / 1.104 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.9585, allocations: 31.86 kB / 1.105 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.9585, allocations: 0 / 1.105 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.9585, allocations: 8 kB / 1.105 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.9585, allocations: 0 / 1.105 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.9585, allocations: 0 / 1.105 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004134/0.9589, allocations: 156.9 kB / 1.105 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.968e-05/0.959, allocations: 89.05 kB / 1.105 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.9591, allocations: 8 kB / 1.105 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.9593, allocations: 11.98 kB / 1.105 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.9593, allocations: 11.92 kB / 1.105 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.9593, allocations: 8 kB / 1.105 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.664e-05/0.9594, allocations: 75.28 kB / 1.105 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9594, allocations: 0 / 1.105 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002411/0.9618, allocations: 0.5663 MB / 1.105 GB, free: 0.9219 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.004207/0.966, allocations: 365.7 kB / 1.106 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002886/0.9663, allocations: 75.86 kB / 1.106 GB, free: 496 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.9664, allocations: 0 / 1.106 GB, free: 496 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.896e-05/0.9665, allocations: 35.92 kB / 1.106 GB, free: 460 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.9668, allocations: 11.94 kB / 1.106 GB, free: 448 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009843/0.9678, allocations: 354 kB / 1.106 GB, free: 68 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.9682, allocations: 0.6885 MB / 1.107 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001543/0.9684, allocations: 24.53 kB / 1.107 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.9685, allocations: 19.44 kB / 1.107 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of SimCode: time 4.1e-07/0.9685, allocations: 0 / 1.107 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of Templates: time 0.05418/1.023, allocations: 24.24 MB / 1.131 GB, free: 7.047 MB / 0.8887 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches