Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 194 kB / 16.53 MB, free: 6.664 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.46/2.46, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 59.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7661/0.7675, allocations: 140.4 MB / 0.9496 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.004481/0.7721, allocations: 4.057 MB / 0.9535 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002188/0.7743, allocations: 2.429 MB / 0.9559 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.784e-05/0.7744, allocations: 6.156 kB / 0.9559 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.7746, allocations: 47.14 kB / 0.956 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002638/0.7749, allocations: 103.2 kB / 0.9561 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.7761, allocations: 0.5196 MB / 0.9566 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000334/0.7764, allocations: 255.2 kB / 0.9568 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.908e-05/0.7765, allocations: 13.64 kB / 0.9568 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.7767, allocations: 119.9 kB / 0.9569 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.7768, allocations: 94.91 kB / 0.957 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.7769, allocations: 8.406 kB / 0.957 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008193/0.7777, allocations: 446.8 kB / 0.9575 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.408e-05/0.7778, allocations: 55.22 kB / 0.9575 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.7779, allocations: 81.5 kB / 0.9576 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005726/0.7785, allocations: 403.9 kB / 0.958 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.7785, allocations: 0 / 0.958 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7785, allocations: 0 / 0.958 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.7785, allocations: 0 / 0.958 GB, free: 2.73 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006625/0.7792, allocations: 0.508 MB / 0.9585 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.7792, allocations: 9.625 kB / 0.9585 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.7811, allocations: 178.6 kB / 0.9587 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.7814, allocations: 220.7 kB / 0.9589 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.7814, allocations: 15.02 kB / 0.9589 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.7815, allocations: 15.28 kB / 0.9589 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/0.7821, allocations: 311 kB / 0.9592 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.7821, allocations: 0 / 0.9592 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.7822, allocations: 11.34 kB / 0.9592 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.7822, allocations: 5.562 kB / 0.9592 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006912/0.7829, allocations: 263 kB / 0.9595 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.7842, allocations: 1.379 MB / 0.9608 GB, free: 156 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006604/0.7849, allocations: 195.4 kB / 0.961 GB, free: 52 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.7851, allocations: 81.16 kB / 0.9611 GB, free: 8 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.7852, allocations: 1.781 kB / 0.9611 GB, free: 8 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.314e-05/0.7852, allocations: 36.78 kB / 0.9611 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.7852, allocations: 0 / 0.9611 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18): time 0.0008546/0.7861, allocations: 249.9 kB / 0.9613 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.7862, allocations: 53.66 kB / 0.9614 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.7863, allocations: 158.1 kB / 0.9615 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.7864, allocations: 31.83 kB / 0.9616 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/0.7865, allocations: 122.4 kB / 0.9617 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/0.7865, allocations: 66.17 kB / 0.9618 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.977e-05/0.7866, allocations: 51.38 kB / 0.9618 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.7868, allocations: 326.2 kB / 0.9621 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.787, allocations: 72.16 kB / 0.9622 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.7873, allocations: 150.3 kB / 0.9623 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005073/0.7878, allocations: 217.8 kB / 0.9625 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.7878, allocations: 1.406 kB / 0.9625 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006438/0.7884, allocations: 250.6 kB / 0.9628 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.7885, allocations: 5.719 kB / 0.9628 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.7885, allocations: 2.469 kB / 0.9628 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.7885, allocations: 4 kB / 0.9628 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.7889, allocations: 66.45 kB / 0.9629 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.7889, allocations: 7.844 kB / 0.9629 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.7892, allocations: 34.86 kB / 0.9629 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.7892, allocations: 8.812 kB / 0.9629 GB, free: 14.54 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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.0001454/0.7893, allocations: 133.5 kB / 0.963 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.7894, allocations: 20.59 kB / 0.963 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006584/0.7901, allocations: 223.2 kB / 0.9633 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.7901, allocations: 6.281 kB / 0.9633 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.7901, allocations: 0 / 0.9633 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/0.7901, allocations: 3.984 kB / 0.9633 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.7904, allocations: 252.9 kB / 0.9635 GB, free: 14 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.7904, allocations: 0 / 0.9635 GB, free: 14 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.7907, allocations: 46.97 kB / 0.9636 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.7907, allocations: 3.875 kB / 0.9636 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.7908, allocations: 0 / 0.9636 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.7908, allocations: 0 / 0.9636 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.7908, allocations: 0 / 0.9636 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005711/0.7914, allocations: 308.1 kB / 0.9639 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.7915, allocations: 104.6 kB / 0.964 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.7915, allocations: 2.312 kB / 0.964 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.7918, allocations: 17.11 kB / 0.964 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.632e-05/0.7919, allocations: 17.27 kB / 0.964 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.7919, allocations: 13.39 kB / 0.964 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.913e-05/0.792, allocations: 118 kB / 0.9641 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.792, allocations: 0 / 0.9641 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003941/0.7924, allocations: 67.31 kB / 0.9642 GB, free: 13.51 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (20): * Single equations (assignments): 20 * 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.0002909/0.7927, allocations: 140.4 kB / 0.9643 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006355/0.7934, allocations: 180.8 kB / 0.9645 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.7934, allocations: 5.281 kB / 0.9645 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.7936, allocations: 89.14 kB / 0.9646 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005821/0.7942, allocations: 68.83 kB / 0.9646 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.7952, allocations: 418.3 kB / 0.965 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.7956, allocations: 0.7146 MB / 0.9657 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003451/0.7959, allocations: 48.56 kB / 0.9658 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.228e-05/0.796, allocations: 28.55 kB / 0.9658 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.796, allocations: 0 / 0.9658 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of Templates: time 0.007721/0.8038, allocations: 3.389 MB / 0.9691 GB, free: 10.51 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches