Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001538/0.001538, allocations: 103.9 kB / 15.98 MB, free: 6.355 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.001531/0.001531, allocations: 195.3 kB / 16.91 MB, free: 6.195 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.382/1.382, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.687/2.687, allocations: 482.4 MB / 0.755 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 68.2 kB / 0.924 GB, free: 348 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.699/0.7009, allocations: 162.2 MB / 1.082 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002143/0.703, allocations: 1.329 MB / 1.084 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1691/0.8721, allocations: 135.7 MB / 1.216 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.918e-05/0.8722, allocations: 0 / 1.216 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.205e-05/0.8723, allocations: 0 / 1.216 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.64e-05/0.8724, allocations: 7.938 kB / 1.216 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.8736, allocations: 410.8 kB / 1.217 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.949e-05/0.8737, allocations: 31.92 kB / 1.217 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.656e-05/0.8738, allocations: 4 kB / 1.217 GB, free: 5.234 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.923e-05/0.8738, allocations: 31.84 kB / 1.217 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.703e-05/0.8739, allocations: 15.98 kB / 1.217 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.8739, allocations: 0 / 1.217 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.8753, allocations: 0.8114 MB / 1.217 GB, free: 4.375 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.8753, allocations: 19.86 kB / 1.217 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.77e-05/0.8754, allocations: 19.92 kB / 1.218 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.8757, allocations: 297.4 kB / 1.218 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.8758, allocations: 0 / 1.218 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8758, allocations: 0 / 1.218 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.8758, allocations: 0 / 1.218 GB, free: 4.047 MB / 0.9356 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.0005278/0.8763, allocations: 363.5 kB / 1.218 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.8764, allocations: 16.02 kB / 1.218 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.8765, allocations: 16.84 kB / 1.218 GB, free: 3.613 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.8767, allocations: 160.4 kB / 1.218 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.8767, allocations: 384 / 1.218 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.044e-05/0.8767, allocations: 16.11 kB / 1.218 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.8769, allocations: 57.61 kB / 1.218 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.8769, allocations: 4 kB / 1.218 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.8769, allocations: 0 / 1.218 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.8769, allocations: 0 / 1.218 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.221e-05/0.877, allocations: 23.97 kB / 1.218 GB, free: 3.312 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.8772, allocations: 161.7 kB / 1.219 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.8773, allocations: 46.56 kB / 1.219 GB, free: 3.051 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.8774, allocations: 28.78 kB / 1.219 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/0.888, allocations: 3.167 MB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.8881, allocations: 42.5 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.284e-06/0.8881, allocations: 0 / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.04142/0.9295, allocations: 14.85 MB / 1.236 GB, free: 0.7031 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.9296, allocations: 55.41 kB / 1.236 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.9297, allocations: 89.86 kB / 1.236 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.9297, allocations: 33.7 kB / 1.236 GB, free: 0.5 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.468e-05/0.9298, allocations: 80.14 kB / 1.237 GB, free: 428 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.9299, allocations: 43.3 kB / 1.237 GB, free: 384 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-05/0.9299, allocations: 37.77 kB / 1.237 GB, free: 340 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.9301, allocations: 322.8 kB / 1.237 GB, free: 8 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.281e-05/0.9301, allocations: 31.98 kB / 1.237 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.164e-05/0.9302, allocations: 19.98 kB / 1.237 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.9303, allocations: 64.8 kB / 1.237 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.9303, allocations: 0 / 1.237 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000213/0.9306, allocations: 101 kB / 1.237 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.9306, allocations: 4 kB / 1.237 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.9306, allocations: 4 kB / 1.237 GB, free: 15.78 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.9306, allocations: 0 / 1.237 GB, free: 15.78 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.9307, allocations: 35.92 kB / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.9307, allocations: 0 / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.673e-05/0.9308, allocations: 0 / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.9308, allocations: 11.94 kB / 1.237 GB, free: 15.73 MB / 0.9669 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.841e-05/0.9309, allocations: 118.6 kB / 1.237 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.005e-05/0.931, allocations: 7.906 kB / 1.237 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002896/0.9312, allocations: 121.5 kB / 1.237 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.9313, allocations: 4 kB / 1.237 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.9313, allocations: 0 / 1.237 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.9313, allocations: 3.984 kB / 1.237 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.9315, allocations: 177.6 kB / 1.238 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.9315, allocations: 3.938 kB / 1.238 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.9316, allocations: 24 kB / 1.238 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.9316, allocations: 0 / 1.238 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.9316, allocations: 7.984 kB / 1.238 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.9316, allocations: 4 kB / 1.238 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9316, allocations: 0 / 1.238 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.9319, allocations: 153.2 kB / 1.238 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.451e-05/0.932, allocations: 93.06 kB / 1.238 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.932, allocations: 4 kB / 1.238 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.9322, allocations: 12 kB / 1.238 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.275e-05/0.9322, allocations: 11.92 kB / 1.238 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.9322, allocations: 8 kB / 1.238 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.825e-05/0.9323, allocations: 75.28 kB / 1.238 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9323, allocations: 3.938 kB / 1.238 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001595/0.9339, allocations: 0.5702 MB / 1.239 GB, free: 14.25 MB / 0.9669 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.002766/0.9367, allocations: 355.1 kB / 1.239 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001848/0.9369, allocations: 71.95 kB / 1.239 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.9369, allocations: 4 kB / 1.239 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.648e-05/0.9369, allocations: 35.92 kB / 1.239 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.9371, allocations: 15.88 kB / 1.239 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.9378, allocations: 391.6 kB / 1.239 GB, free: 13.35 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.9381, allocations: 0.6846 MB / 1.24 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.9381, allocations: 23.44 kB / 1.24 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of SimCode: time 2.7e-07/0.9382, allocations: 0 / 1.24 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of Templates: time 0.02358/0.9617, allocations: 14.32 MB / 1.254 GB, free: 14.31 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches