Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001457/0.001457, allocations: 192.2 kB / 16.13 MB, free: 6.656 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.943/2.943, allocations: 472.6 MB / 0.7447 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 66.78 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3048, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.003077/0.3079, allocations: 1.594 MB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3093, allocations: 0.7752 MB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.173e-05/0.3094, allocations: 0 / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.719e-05/0.3094, allocations: 3.984 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.751e-05/0.3095, allocations: 19.8 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.3099, allocations: 75.8 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.31, allocations: 43.8 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.891e-05/0.3101, allocations: 15.92 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.3102, allocations: 23.92 kB / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.963e-05/0.3103, allocations: 23.91 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.3103, allocations: 7.938 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.3105, allocations: 59.95 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.3105, allocations: 11.98 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.505e-05/0.3106, allocations: 19.86 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.3109, allocations: 99.98 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3109, allocations: 0 / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.61e-07/0.3109, allocations: 0 / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.3109, allocations: 0 / 1.07 GB, free: 8.086 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005026/0.3114, allocations: 371.3 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3114, allocations: 8.031 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004065/0.3119, allocations: 36.81 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.312, allocations: 172.2 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.312, allocations: 4.312 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.312, allocations: 384 / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3123, allocations: 89.92 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.3123, allocations: 0 / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.3124, allocations: 4 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3124, allocations: 0 / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.3126, allocations: 67.94 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.3132, allocations: 320.6 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.3135, allocations: 78.47 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.3136, allocations: 40.92 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.3137, allocations: 0 / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.3137, allocations: 38.56 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.3137, allocations: 0 / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005464/0.3143, allocations: 133.5 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.3143, allocations: 55.34 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3144, allocations: 121.8 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.3144, allocations: 33.64 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.3145, allocations: 88.14 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.3145, allocations: 7.844 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.3146, allocations: 21.7 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.3147, allocations: 322.8 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.3149, allocations: 31.97 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.315, allocations: 31.98 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.3153, allocations: 64.8 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3153, allocations: 0 / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003379/0.3156, allocations: 113.5 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.3157, allocations: 4 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3157, allocations: 3.938 kB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3157, allocations: 0 / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.3159, allocations: 19.97 kB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.3159, allocations: 0 / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.299e-05/0.316, allocations: 8 kB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.316, allocations: 3.984 kB / 1.072 GB, free: 5.613 MB / 0.8262 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 (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 9.101e-05/0.3161, allocations: 117.8 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.367e-05/0.3161, allocations: 7.906 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.3162, allocations: 7.906 kB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3162, allocations: 0 / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3162, allocations: 7.984 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3162, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000288/0.3165, allocations: 185.6 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3165, allocations: 4 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.3166, allocations: 15.98 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3166, allocations: 336 / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.3167, allocations: 3.984 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3167, allocations: 0 / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3167, allocations: 0 / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.3171, allocations: 215.3 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.3171, allocations: 81.02 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.3172, allocations: 4 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.3173, allocations: 7.984 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.3173, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.3173, allocations: 11.92 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.579e-05/0.3174, allocations: 87.28 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3174, allocations: 0 / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000276/0.3177, allocations: 35.98 kB / 1.073 GB, free: 4.734 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 (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 Backend phase and start with SimCode phase: time 0.0001981/0.3179, allocations: 129.5 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003272/0.3182, allocations: 71.88 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3182, allocations: 0 / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.3184, allocations: 43.97 kB / 1.073 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.3187, allocations: 6 kB / 1.073 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/0.3192, allocations: 173 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.3195, allocations: 0.6848 MB / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.507e-05/0.3196, allocations: 19.97 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.879e-05/0.3197, allocations: 11.44 kB / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of SimCode: time 1.503e-06/0.3197, allocations: 0 / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of Templates: time 0.003528/0.3232, allocations: 1.027 MB / 1.075 GB, free: 2.523 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1)