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.001511/0.001511, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.0017/0.0017, allocations: 187 kB / 17.34 MB, free: 5.762 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.15 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.2/2.2, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 67.83 kB / 0.9515 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9753/0.9765, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00224/0.9788, allocations: 1.265 MB / 1.09 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1763/1.155, allocations: 137.7 MB / 1.224 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.647e-05/1.155, allocations: 4 kB / 1.224 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.916e-05/1.155, allocations: 0 / 1.224 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.335e-05/1.155, allocations: 13.31 kB / 1.224 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001809/1.157, allocations: 466.2 kB / 1.225 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000107/1.157, allocations: 39.62 kB / 1.225 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.148e-05/1.157, allocations: 2.562 kB / 1.225 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.483e-05/1.157, allocations: 23.23 kB / 1.225 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.146e-05/1.157, allocations: 22.56 kB / 1.225 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/1.157, allocations: 2.312 kB / 1.225 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/1.159, allocations: 0.8312 MB / 1.226 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.444e-05/1.159, allocations: 15.12 kB / 1.226 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.474e-05/1.16, allocations: 14.78 kB / 1.226 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008737/1.16, allocations: 443.9 kB / 1.226 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/1.16, allocations: 0 / 1.226 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.633e-06/1.16, allocations: 0 / 1.226 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.664e-06/1.16, allocations: 1.344 kB / 1.226 GB, free: 12.84 MB / 0.9669 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.0006723/1.161, allocations: 374.8 kB / 1.226 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/1.161, allocations: 14.12 kB / 1.226 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/1.161, allocations: 16.92 kB / 1.226 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.836e-05/1.161, allocations: 160.4 kB / 1.227 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/1.162, allocations: 2.875 kB / 1.227 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.274e-05/1.162, allocations: 10.75 kB / 1.227 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/1.162, allocations: 58.56 kB / 1.227 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/1.162, allocations: 0 / 1.227 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/1.162, allocations: 1.062 kB / 1.227 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/1.162, allocations: 0.9688 kB / 1.227 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.73e-05/1.162, allocations: 23.48 kB / 1.227 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/1.162, allocations: 168.3 kB / 1.227 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/1.162, allocations: 52.97 kB / 1.227 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.882e-05/1.162, allocations: 14.92 kB / 1.227 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/1.174, allocations: 3.207 MB / 1.23 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/1.174, allocations: 31.97 kB / 1.23 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/1.174, allocations: 0 / 1.23 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.04311/1.217, allocations: 15 MB / 1.245 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/1.217, allocations: 55.34 kB / 1.245 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.479e-05/1.217, allocations: 101.8 kB / 1.245 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/1.217, allocations: 25.7 kB / 1.245 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.47e-05/1.217, allocations: 88.08 kB / 1.245 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/1.217, allocations: 43.38 kB / 1.245 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-05/1.217, allocations: 29.72 kB / 1.245 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001022/1.218, allocations: 322.8 kB / 1.245 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.593e-05/1.218, allocations: 23.98 kB / 1.245 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.045e-05/1.218, allocations: 20 kB / 1.245 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/1.218, allocations: 64.97 kB / 1.246 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/1.218, allocations: 0 / 1.246 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002156/1.218, allocations: 109.5 kB / 1.246 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/1.218, allocations: 4 kB / 1.246 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/1.218, allocations: 3.984 kB / 1.246 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/1.218, allocations: 0 / 1.246 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/1.218, allocations: 24 kB / 1.246 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/1.218, allocations: 0 / 1.246 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.806e-05/1.218, allocations: 0 / 1.246 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/1.218, allocations: 7.984 kB / 1.246 GB, free: 12.57 MB / 0.9825 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 9.087e-05/1.218, allocations: 125.7 kB / 1.246 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.642e-05/1.218, allocations: 7.906 kB / 1.246 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000263/1.219, allocations: 125.5 kB / 1.246 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/1.219, allocations: 0 / 1.246 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/1.219, allocations: 0 / 1.246 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/1.219, allocations: 3.938 kB / 1.246 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/1.219, allocations: 185.6 kB / 1.246 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/1.219, allocations: 0 / 1.246 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/1.219, allocations: 23.98 kB / 1.246 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/1.219, allocations: 0 / 1.246 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/1.219, allocations: 8 kB / 1.246 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/1.219, allocations: 3.938 kB / 1.246 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/1.219, allocations: 0 / 1.246 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/1.219, allocations: 156.9 kB / 1.246 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-05/1.219, allocations: 89.14 kB / 1.246 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/1.219, allocations: 4 kB / 1.246 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/1.22, allocations: 11.98 kB / 1.246 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/1.22, allocations: 7.984 kB / 1.246 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/1.22, allocations: 8 kB / 1.246 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.82e-05/1.22, allocations: 75.28 kB / 1.246 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/1.22, allocations: 4 kB / 1.246 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001968/1.222, allocations: 0.5703 MB / 1.247 GB, free: 11.07 MB / 0.9825 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.003831/1.225, allocations: 358.7 kB / 1.247 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001843/1.226, allocations: 55.98 kB / 1.247 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/1.226, allocations: 4 kB / 1.247 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.336e-05/1.226, allocations: 39.86 kB / 1.247 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000181/1.226, allocations: 11.94 kB / 1.247 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005893/1.227, allocations: 383.8 kB / 1.248 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/1.227, allocations: 0.689 MB / 1.249 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.754e-05/1.227, allocations: 15.44 kB / 1.249 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/1.227, allocations: 0 / 1.249 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of Templates: time 0.02116/1.248, allocations: 14.35 MB / 1.263 GB, free: 11.12 MB / 0.9981 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