Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001464, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001701/0.001701, allocations: 196.9 kB / 16.14 MB, free: 6.688 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.963/2.963, allocations: 472.6 MB / 0.7447 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 58.08 kB / 0.9113 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3502, allocations: 159.9 MB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005407/0.3557, allocations: 4.054 MB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001935/0.3559, allocations: 171.4 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.661e-05/0.3559, allocations: 0 / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.482e-05/0.356, allocations: 0 / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.878e-05/0.3561, allocations: 15.92 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.3564, allocations: 71.77 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.271e-05/0.3565, allocations: 55.88 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.002e-05/0.3566, allocations: 11.98 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.69e-05/0.3566, allocations: 8 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.508e-05/0.3567, allocations: 23.84 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.3567, allocations: 0 / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.3569, allocations: 71.8 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.691e-05/0.357, allocations: 11.97 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.108e-05/0.357, allocations: 11.94 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.3572, allocations: 39.95 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3572, allocations: 0 / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.022e-06/0.3572, allocations: 0 / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3572, allocations: 0 / 1.072 GB, free: 6.34 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003946/0.3576, allocations: 343.8 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3577, allocations: 8.031 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.3577, allocations: 8.844 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.3578, allocations: 160.4 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.785e-05/0.3579, allocations: 26.27 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.3579, allocations: 4.375 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.358, allocations: 49.56 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.358, allocations: 4 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.358, allocations: 3.984 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.3581, allocations: 7.922 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.785e-05/0.3581, allocations: 12 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004377/0.3586, allocations: 334 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.72e-05/0.3586, allocations: 22.52 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.601e-05/0.3586, allocations: 8.844 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.207e-05/0.3587, allocations: 89.17 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.3588, allocations: 30.56 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3588, allocations: 0 / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001369/0.3589, allocations: 37.69 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.3589, allocations: 51.41 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.639e-05/0.359, allocations: 97.86 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.359, allocations: 29.64 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.3591, allocations: 100.1 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.414e-06/0.3591, allocations: 7.906 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.3592, allocations: 21.66 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3593, allocations: 314.8 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.311e-05/0.3593, allocations: 8 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.407e-05/0.3593, allocations: 17.7 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.411e-05/0.3594, allocations: 21.72 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3594, allocations: 0 / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.07e-05/0.3594, allocations: 49.62 kB / 1.074 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.3595, allocations: 4 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.3595, allocations: 0 / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.3595, allocations: 0 / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.981e-05/0.3595, allocations: 8 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3595, allocations: 4 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.721e-05/0.3596, allocations: 0 / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3596, allocations: 12.05 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 7.76e-05/0.3597, allocations: 113.8 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.74e-05/0.3597, allocations: 0 / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.805e-05/0.3598, allocations: 124.8 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.738e-05/0.3599, allocations: 180.2 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.376e-05/0.3599, allocations: 188.2 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.435e-05/0.36, allocations: 176.3 kB / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.3602, allocations: 413.1 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.874e-05/0.3603, allocations: 101 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-05/0.3603, allocations: 104.9 kB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.159e-05/0.3604, allocations: 180.2 kB / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.3605, allocations: 188.2 kB / 1.075 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.188e-05/0.3605, allocations: 180.2 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.535e-05/0.3606, allocations: 180.3 kB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.3608, allocations: 303.7 kB / 1.076 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.465e-05/0.3609, allocations: 186.1 kB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.269e-05/0.361, allocations: 188.2 kB / 1.076 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.3612, allocations: 109.2 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.442e-05/0.3612, allocations: 184.2 kB / 1.077 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/0.3613, allocations: 101 kB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.718e-05/0.3613, allocations: 83.28 kB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3613, allocations: 4 kB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002262/0.3616, allocations: 12 kB / 1.077 GB, free: 0.7617 MB / 0.8262 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 (0): * Single equations (assignments): 0 * 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.0002594/0.3618, allocations: 210.4 kB / 1.077 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.526e-05/0.3619, allocations: 15.97 kB / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3619, allocations: 0 / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.143e-06/0.3619, allocations: 0 / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.3623, allocations: 0.5319 MB / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002432/0.3626, allocations: 179.8 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.3629, allocations: 0.677 MB / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.247e-05/0.363, allocations: 16.09 kB / 1.078 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.329e-05/0.363, allocations: 7.438 kB / 1.078 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of SimCode: time 1.91e-07/0.363, allocations: 0 / 1.078 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of Templates: time 0.002613/0.3656, allocations: 0.621 MB / 1.079 GB, free: 14.45 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)