Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, 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.001747/0.001747, allocations: 195.4 kB / 16.14 MB, free: 6.695 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.453/1.453, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.917/2.917, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 61.22 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3687, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002996/0.3717, allocations: 1.627 MB / 1.069 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007016/0.3724, allocations: 450.9 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.824e-05/0.3725, allocations: 3.938 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.584e-05/0.3725, allocations: 3.984 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.366e-05/0.3726, allocations: 7.922 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.3728, allocations: 23.92 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.95e-05/0.3729, allocations: 63.84 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.3731, allocations: 23.95 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.3732, allocations: 23.92 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.771e-05/0.3732, allocations: 31.84 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.99e-05/0.3733, allocations: 4 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.668e-05/0.3733, allocations: 4 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.841e-05/0.3733, allocations: 15.97 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.3734, allocations: 27.86 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.3735, allocations: 64.11 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.3735, allocations: 0 / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3735, allocations: 3.938 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.3736, allocations: 0 / 1.07 GB, free: 8.52 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005977/0.3742, allocations: 372.8 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3742, allocations: 16.02 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.3743, allocations: 4.938 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.3744, allocations: 168.2 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.3744, allocations: 8.375 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.3744, allocations: 4.375 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.3746, allocations: 89.94 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3746, allocations: 4 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.3746, allocations: 4 kB / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3747, allocations: 0 / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.3748, allocations: 47.91 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005589/0.3753, allocations: 320.6 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/0.3756, allocations: 106.5 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.657e-05/0.3757, allocations: 40.84 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.3757, allocations: 0 / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.376, allocations: 127.4 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.376, allocations: 0 / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.000392/0.3764, allocations: 173.5 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.3765, allocations: 55.41 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/0.3765, allocations: 105.8 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3766, allocations: 33.7 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.3766, allocations: 84.38 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.3766, allocations: 27.61 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.3767, allocations: 33.7 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3768, allocations: 322.8 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.595e-05/0.3769, allocations: 35.92 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.868e-05/0.377, allocations: 48.81 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.3771, allocations: 65.7 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3771, allocations: 0 / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001948/0.3773, allocations: 121.8 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.3774, allocations: 7.984 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3774, allocations: 0 / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3774, allocations: 4 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.548e-05/0.3775, allocations: 12 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.3775, allocations: 3.938 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.928e-05/0.3776, allocations: 11.92 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.3776, allocations: 8 kB / 1.072 GB, free: 5.871 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: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * 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.945e-05/0.3777, allocations: 123.7 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.3777, allocations: 11.89 kB / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.3777, allocations: 12.38 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3777, allocations: 0 / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3778, allocations: 0 / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3778, allocations: 0 / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.3779, allocations: 197.5 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3779, allocations: 4 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.378, allocations: 7.984 kB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.378, allocations: 8 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.3781, allocations: 4 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3781, allocations: 3.938 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3781, allocations: 7.922 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.3784, allocations: 212.9 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.3785, allocations: 81.02 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.3785, allocations: 8.016 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.3786, allocations: 12.06 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.3787, allocations: 11.97 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.3787, allocations: 8 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.782e-05/0.3787, allocations: 91.56 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.134e-06/0.3787, allocations: 3.938 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001913/0.3789, allocations: 23.94 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001304/0.3791, allocations: 111.2 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000219/0.3793, allocations: 91.89 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3793, allocations: 0 / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.3794, allocations: 67.91 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.3796, allocations: 14.23 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000495/0.3801, allocations: 271.2 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.3805, allocations: 0.6926 MB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.103e-05/0.3805, allocations: 12.66 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.3806, allocations: 11.44 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.3806, allocations: 0 / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of Templates: time 0.00321/0.3838, allocations: 0.9305 MB / 1.075 GB, free: 2.715 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1)