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.001354/0.001354, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001521/0.001521, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 223.2 MB / 239.9 MB, free: 5.32 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.462/2.462, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004025, allocations: 12 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.808/0.8084, allocations: 142.3 MB / 0.9535 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.001304/0.8097, allocations: 0.9649 MB / 0.9544 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1525/0.9623, allocations: 116.4 MB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.9624, allocations: 0 / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.836e-05/0.9624, allocations: 0 / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.9625, allocations: 3.984 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.964, allocations: 366.9 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.868e-05/0.9641, allocations: 19.97 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.266e-05/0.9642, allocations: 11.92 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.875e-05/0.9642, allocations: 23.92 kB / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.937e-05/0.9643, allocations: 19.92 kB / 1.069 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.9643, allocations: 0 / 1.069 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.9658, allocations: 0.7881 MB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.9658, allocations: 7.984 kB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.421e-05/0.9658, allocations: 37.7 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.9663, allocations: 285.4 kB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.9663, allocations: 0 / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.525e-06/0.9663, allocations: 0 / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.9663, allocations: 0 / 1.07 GB, free: 8.949 MB / 0.8262 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.000535/0.9668, allocations: 367.1 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.9669, allocations: 12.03 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.9671, allocations: 11.95 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.9672, allocations: 159.1 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.9673, allocations: 11.94 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.9673, allocations: 7.984 kB / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.9675, allocations: 49.69 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.9675, allocations: 0 / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.9675, allocations: 4 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.9675, allocations: 3.953 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.813e-05/0.9676, allocations: 19.97 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002058/0.9678, allocations: 165.6 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.9679, allocations: 62.56 kB / 1.07 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.9793, allocations: 3.198 MB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.603e-05/0.9794, allocations: 34.56 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 4.468e-06/0.9794, allocations: 0 / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.03779/1.017, allocations: 14.25 MB / 1.088 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/1.017, allocations: 51.41 kB / 1.088 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.431e-05/1.017, allocations: 93.84 kB / 1.088 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/1.017, allocations: 37.83 kB / 1.088 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/1.017, allocations: 80.14 kB / 1.088 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.173e-05/1.018, allocations: 31.47 kB / 1.088 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/1.018, allocations: 0 / 1.088 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.018, allocations: 322.8 kB / 1.088 GB, free: 5.559 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.973e-05/1.018, allocations: 23.98 kB / 1.088 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.977e-05/1.018, allocations: 19.94 kB / 1.088 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.142e-05/1.018, allocations: 35.36 kB / 1.088 GB, free: 5.484 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.12e-07/1.018, allocations: 4 kB / 1.088 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002107/1.018, allocations: 105.6 kB / 1.088 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/1.018, allocations: 4 kB / 1.088 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.018, allocations: 0 / 1.088 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/1.018, allocations: 7.953 kB / 1.088 GB, free: 5.359 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/1.018, allocations: 23.98 kB / 1.088 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/1.018, allocations: 0 / 1.088 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.841e-05/1.018, allocations: 11.94 kB / 1.088 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/1.018, allocations: 0 / 1.088 GB, free: 5.324 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.231e-05/1.018, allocations: 117.8 kB / 1.088 GB, free: 5.199 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/1.018, allocations: 15.89 kB / 1.088 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/1.019, allocations: 113.6 kB / 1.089 GB, free: 5.07 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/1.019, allocations: 4 kB / 1.089 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.019, allocations: 3.953 kB / 1.089 GB, free: 5.062 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/1.019, allocations: 0 / 1.089 GB, free: 5.062 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/1.019, allocations: 181.6 kB / 1.089 GB, free: 4.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.019, allocations: 4 kB / 1.089 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/1.019, allocations: 23.98 kB / 1.089 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/1.019, allocations: 0 / 1.089 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/1.019, allocations: 8 kB / 1.089 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/1.019, allocations: 0 / 1.089 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/1.019, allocations: 0 / 1.089 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/1.019, allocations: 157 kB / 1.089 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.015e-05/1.019, allocations: 89.05 kB / 1.089 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/1.019, allocations: 8 kB / 1.089 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/1.02, allocations: 23.86 kB / 1.089 GB, free: 4.492 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.209e-05/1.02, allocations: 4 kB / 1.089 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/1.02, allocations: 8.078 kB / 1.089 GB, free: 4.48 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.285e-05/1.02, allocations: 79.23 kB / 1.089 GB, free: 4.402 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/1.02, allocations: 0 / 1.089 GB, free: 4.402 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001812/1.022, allocations: 0.5742 MB / 1.09 GB, free: 3.828 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002607/1.024, allocations: 351 kB / 1.09 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001716/1.024, allocations: 71.86 kB / 1.09 GB, free: 3.406 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.024, allocations: 0 / 1.09 GB, free: 3.406 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.638e-05/1.024, allocations: 31.98 kB / 1.09 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/1.025, allocations: 13.23 kB / 1.09 GB, free: 3.363 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000601/1.025, allocations: 394.5 kB / 1.091 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/1.025, allocations: 0.6926 MB / 1.091 GB, free: 2.234 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.447e-05/1.026, allocations: 36.45 kB / 1.091 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.832e-05/1.026, allocations: 11.44 kB / 1.091 GB, free: 2.188 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/1.026, allocations: 3.938 kB / 1.091 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of Templates: time 0.04362/1.069, allocations: 25.63 MB / 1.116 GB, free: 8.523 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","../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches