Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007817/0.007817, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001979/0.001979, allocations: 195 kB / 16.67 MB, free: 5.977 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 63.89 kB / 1.018 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3515, allocations: 151.6 MB / 1.167 GB, free: 6.844 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002582/0.3541, allocations: 1.256 MB / 1.168 GB, free: 5.574 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.9215/1.276, allocations: 137.7 MB / 1.302 GB, free: 13.96 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.464e-05/1.276, allocations: 0 / 1.302 GB, free: 13.96 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.527e-05/1.276, allocations: 6.641 kB / 1.302 GB, free: 13.96 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.18e-05/1.276, allocations: 0.7969 kB / 1.302 GB, free: 13.96 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001625/1.278, allocations: 468 kB / 1.303 GB, free: 13.89 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.06e-05/1.278, allocations: 37.38 kB / 1.303 GB, free: 13.89 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.258e-05/1.278, allocations: 10.22 kB / 1.303 GB, free: 13.89 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.515e-05/1.278, allocations: 23.12 kB / 1.303 GB, free: 13.88 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.325e-05/1.278, allocations: 24.02 kB / 1.303 GB, free: 13.88 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/1.278, allocations: 1.344 kB / 1.303 GB, free: 13.88 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001602/1.279, allocations: 0.8257 MB / 1.304 GB, free: 13.86 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.075e-05/1.279, allocations: 9.844 kB / 1.304 GB, free: 13.86 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/1.28, allocations: 18.16 kB / 1.304 GB, free: 13.86 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0007435/1.28, allocations: 448.6 kB / 1.304 GB, free: 13.84 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/1.28, allocations: 4 kB / 1.304 GB, free: 13.84 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.663e-06/1.28, allocations: 0 / 1.304 GB, free: 13.84 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.67e-06/1.28, allocations: 0 / 1.304 GB, free: 13.84 MB / 1.014 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.0005661/1.281, allocations: 376.2 kB / 1.304 GB, free: 13.47 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/1.281, allocations: 9.172 kB / 1.304 GB, free: 13.47 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/1.281, allocations: 11.69 kB / 1.304 GB, free: 13.47 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/1.281, allocations: 161.5 kB / 1.305 GB, free: 13.28 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/1.281, allocations: 2.75 kB / 1.305 GB, free: 13.28 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/1.281, allocations: 15.58 kB / 1.305 GB, free: 13.27 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/1.281, allocations: 59.94 kB / 1.305 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/1.281, allocations: 1.969 kB / 1.305 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/1.282, allocations: 1.625 kB / 1.305 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/1.282, allocations: 1.625 kB / 1.305 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.995e-05/1.282, allocations: 21.78 kB / 1.305 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/1.282, allocations: 165.4 kB / 1.305 GB, free: 13.04 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/1.282, allocations: 50.23 kB / 1.305 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.764e-05/1.282, allocations: 21.97 kB / 1.305 GB, free: 13 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01198/1.294, allocations: 3.206 MB / 1.308 GB, free: 12.28 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/1.294, allocations: 33.27 kB / 1.308 GB, free: 12.24 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 3.847e-06/1.294, allocations: 0 / 1.308 GB, free: 12.24 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.04681/1.341, allocations: 15 MB / 1.323 GB, free: 10.34 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/1.341, allocations: 52.5 kB / 1.323 GB, free: 10.28 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.834e-05/1.341, allocations: 92.73 kB / 1.323 GB, free: 10.18 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/1.341, allocations: 30.42 kB / 1.323 GB, free: 10.15 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/1.341, allocations: 85.33 kB / 1.323 GB, free: 10.07 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/1.341, allocations: 43.92 kB / 1.323 GB, free: 10.04 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.501e-05/1.341, allocations: 39.47 kB / 1.323 GB, free: 10.02 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.341, allocations: 315.1 kB / 1.323 GB, free: 9.703 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.644e-05/1.341, allocations: 24.47 kB / 1.323 GB, free: 9.703 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-05/1.341, allocations: 23.28 kB / 1.323 GB, free: 9.703 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/1.342, allocations: 65.58 kB / 1.323 GB, free: 9.688 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/1.342, allocations: 0 / 1.323 GB, free: 9.688 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002182/1.342, allocations: 105.9 kB / 1.324 GB, free: 9.652 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/1.342, allocations: 4.719 kB / 1.324 GB, free: 9.652 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/1.342, allocations: 5.094 kB / 1.324 GB, free: 9.648 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/1.342, allocations: 1.156 kB / 1.324 GB, free: 9.648 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/1.342, allocations: 21.19 kB / 1.324 GB, free: 9.648 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/1.342, allocations: 5.234 kB / 1.324 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.633e-05/1.342, allocations: 7.281 kB / 1.324 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/1.342, allocations: 6 kB / 1.324 GB, free: 9.645 MB / 1.014 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.0001053/1.342, allocations: 119.5 kB / 1.324 GB, free: 9.523 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/1.342, allocations: 7.422 kB / 1.324 GB, free: 9.52 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/1.343, allocations: 128.9 kB / 1.324 GB, free: 9.461 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/1.343, allocations: 1.125 kB / 1.324 GB, free: 9.461 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/1.343, allocations: 3.938 kB / 1.324 GB, free: 9.457 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/1.343, allocations: 1.25 kB / 1.324 GB, free: 9.457 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/1.343, allocations: 180 kB / 1.324 GB, free: 9.266 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/1.343, allocations: 0 / 1.324 GB, free: 9.266 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/1.343, allocations: 30.16 kB / 1.324 GB, free: 9.262 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/1.343, allocations: 0 / 1.324 GB, free: 9.262 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/1.343, allocations: 9.812 kB / 1.324 GB, free: 9.258 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/1.343, allocations: 2.25 kB / 1.324 GB, free: 9.258 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/1.343, allocations: 1.25 kB / 1.324 GB, free: 9.258 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/1.343, allocations: 156 kB / 1.324 GB, free: 9.18 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.09e-05/1.343, allocations: 89.62 kB / 1.324 GB, free: 9.082 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/1.343, allocations: 6.781 kB / 1.324 GB, free: 9.082 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/1.343, allocations: 14.25 kB / 1.324 GB, free: 9.078 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/1.344, allocations: 10.8 kB / 1.324 GB, free: 9.074 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/1.344, allocations: 8.562 kB / 1.324 GB, free: 9.074 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.349e-05/1.344, allocations: 76.28 kB / 1.324 GB, free: 9 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/1.344, allocations: 1.031 kB / 1.324 GB, free: 9 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002996/1.347, allocations: 0.5629 MB / 1.325 GB, free: 8.98 MB / 1.014 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.002962/1.35, allocations: 361.7 kB / 1.325 GB, free: 8.855 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002138/1.35, allocations: 61.59 kB / 1.325 GB, free: 8.855 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/1.35, allocations: 4 kB / 1.325 GB, free: 8.852 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.471e-05/1.35, allocations: 36.7 kB / 1.325 GB, free: 8.848 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/1.35, allocations: 11.19 kB / 1.325 GB, free: 8.844 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006218/1.351, allocations: 347.2 kB / 1.326 GB, free: 8.582 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/1.351, allocations: 0.6852 MB / 1.326 GB, free: 7.887 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.672e-05/1.351, allocations: 29.38 kB / 1.326 GB, free: 7.871 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/1.351, allocations: 24.25 kB / 1.326 GB, free: 7.859 MB / 1.014 GB Notification: Performance of SimCode: time 5.71e-07/1.351, allocations: 0 / 1.326 GB, free: 7.859 MB / 1.014 GB Notification: Performance of Templates: time 0.04316/1.394, allocations: 24.27 MB / 1.35 GB, free: 12.89 MB / 1.029 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches