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.00115/0.00115, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.009869/0.009869, allocations: 169 kB / 16.26 MB, free: 6.613 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.57/1.57, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.791/2.791, allocations: 473.4 MB / 0.7469 GB, free: 6.043 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003965, allocations: 13.88 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3789, allocations: 162.2 MB / 1.074 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002207/0.3811, allocations: 1.292 MB / 1.075 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008448/0.382, allocations: 431.1 kB / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.991e-05/0.3821, allocations: 0 / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.928e-05/0.3821, allocations: 7.922 kB / 1.076 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.864e-05/0.3822, allocations: 11.92 kB / 1.076 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.3825, allocations: 19.98 kB / 1.076 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.3826, allocations: 67.77 kB / 1.076 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.3828, allocations: 23.97 kB / 1.076 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.3829, allocations: 27.86 kB / 1.076 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.446e-05/0.383, allocations: 31.89 kB / 1.076 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.383, allocations: 4 kB / 1.076 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.227e-05/0.3831, allocations: 0 / 1.076 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.235e-05/0.3831, allocations: 15.92 kB / 1.076 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.733e-05/0.3832, allocations: 49.56 kB / 1.076 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3833, allocations: 60.11 kB / 1.076 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3833, allocations: 0 / 1.076 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3833, allocations: 4 kB / 1.076 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3833, allocations: 0 / 1.076 GB, free: 5.477 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.0005994/0.384, allocations: 359.4 kB / 1.076 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.384, allocations: 8.031 kB / 1.076 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.919e-05/0.3841, allocations: 12.84 kB / 1.076 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.3842, allocations: 172.3 kB / 1.077 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.3843, allocations: 384 / 1.077 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.979e-05/0.3843, allocations: 12.38 kB / 1.077 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.3845, allocations: 93.83 kB / 1.077 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3846, allocations: 0 / 1.077 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.3846, allocations: 3.984 kB / 1.077 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3846, allocations: 7.938 kB / 1.077 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.3847, allocations: 43.97 kB / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006227/0.3854, allocations: 328.7 kB / 1.077 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.3857, allocations: 94.55 kB / 1.077 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.3858, allocations: 49 kB / 1.077 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.3858, allocations: 11.97 kB / 1.077 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.3861, allocations: 115.2 kB / 1.077 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.914e-06/0.3861, allocations: 0 / 1.077 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004215/0.3865, allocations: 181.6 kB / 1.078 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.3866, allocations: 55.39 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.576e-05/0.3867, allocations: 109.8 kB / 1.078 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.3867, allocations: 29.7 kB / 1.078 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.3868, allocations: 92.28 kB / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.3868, allocations: 23.7 kB / 1.078 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.3869, allocations: 17.72 kB / 1.078 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.387, allocations: 322.8 kB / 1.078 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.567e-05/0.3871, allocations: 35.98 kB / 1.078 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.124e-05/0.3872, allocations: 49.7 kB / 1.078 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.3873, allocations: 77.61 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3873, allocations: 0 / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002324/0.3876, allocations: 121.5 kB / 1.078 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3876, allocations: 5.094 kB / 1.078 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3876, allocations: 4 kB / 1.078 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3876, allocations: 0 / 1.078 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.9e-05/0.3877, allocations: 11.98 kB / 1.078 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3878, allocations: 4 kB / 1.078 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.467e-05/0.3879, allocations: 15.84 kB / 1.078 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.3879, allocations: 15.98 kB / 1.078 GB, free: 2.809 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.976e-05/0.388, allocations: 121.7 kB / 1.079 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.388, allocations: 4 kB / 1.079 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.388, allocations: 12.38 kB / 1.079 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3881, allocations: 4 kB / 1.079 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3881, allocations: 0 / 1.079 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3881, allocations: 3.984 kB / 1.079 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.3883, allocations: 201.5 kB / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3883, allocations: 0 / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.74e-05/0.3884, allocations: 12 kB / 1.079 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.3884, allocations: 11.92 kB / 1.079 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.3884, allocations: 0 / 1.079 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3884, allocations: 0 / 1.079 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3884, allocations: 0 / 1.079 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.3888, allocations: 229.4 kB / 1.079 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.3889, allocations: 85.05 kB / 1.079 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.3889, allocations: 4 kB / 1.079 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.451e-05/0.389, allocations: 7.984 kB / 1.079 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.352e-05/0.389, allocations: 15.98 kB / 1.079 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.3891, allocations: 7.984 kB / 1.079 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.849e-05/0.3891, allocations: 83.59 kB / 1.079 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3891, allocations: 0 / 1.079 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002136/0.3893, allocations: 24.05 kB / 1.079 GB, free: 1.902 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.0001355/0.3895, allocations: 103.2 kB / 1.079 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002541/0.3897, allocations: 103.8 kB / 1.079 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3897, allocations: 0 / 1.079 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.3899, allocations: 67.92 kB / 1.08 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.3901, allocations: 18.05 kB / 1.08 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005544/0.3907, allocations: 309.3 kB / 1.08 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.3909, allocations: 0.6848 MB / 1.081 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.549e-05/0.391, allocations: 12.66 kB / 1.081 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.391, allocations: 11.44 kB / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.3911, allocations: 0 / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of Templates: time 0.003358/0.3944, allocations: 0.9212 MB / 1.081 GB, free: 15.62 MB / 0.8419 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)