Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_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.001075/0.001075, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009601/0.00096, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.405/2.405, allocations: 390.2 MB / 0.6653 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.000323, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.756/0.7563, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001614/0.758, allocations: 1.264 MB / 0.9548 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006279/0.7586, allocations: 413.5 kB / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.102e-05/0.7587, allocations: 1.281 kB / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.7587, allocations: 3.938 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.583e-05/0.7588, allocations: 9.422 kB / 0.9552 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.759, allocations: 25.8 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.033e-05/0.7591, allocations: 45.86 kB / 0.9552 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.7592, allocations: 8.797 kB / 0.9552 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.008e-05/0.7593, allocations: 32.86 kB / 0.9553 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.803e-05/0.7594, allocations: 28.52 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.7594, allocations: 2.688 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.355e-05/0.7594, allocations: 3.375 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.976e-05/0.7594, allocations: 10.55 kB / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.897e-05/0.7595, allocations: 42.77 kB / 0.9554 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.225e-05/0.7595, allocations: 48.83 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.7596, allocations: 0 / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.555e-06/0.7596, allocations: 1.438 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.7596, allocations: 0 / 0.9554 GB, free: 6.602 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004812/0.7601, allocations: 357.7 kB / 0.9557 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.7601, allocations: 8.469 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.578e-05/0.7601, allocations: 8.328 kB / 0.9558 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.94e-05/0.7602, allocations: 174.1 kB / 0.9559 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.7603, allocations: 6.125 kB / 0.9559 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.7603, allocations: 9.578 kB / 0.9559 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.7605, allocations: 86.92 kB / 0.956 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.7605, allocations: 0 / 0.956 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.7605, allocations: 0.9375 kB / 0.956 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.7605, allocations: 5.062 kB / 0.956 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.7607, allocations: 55.02 kB / 0.9561 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004683/0.7611, allocations: 312.7 kB / 0.9564 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.7614, allocations: 105.1 kB / 0.9565 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.7614, allocations: 9.422 kB / 0.9565 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.7617, allocations: 113.6 kB / 0.9566 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.7617, allocations: 3.938 kB / 0.9566 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003679/0.762, allocations: 185 kB / 0.9568 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.7621, allocations: 53.56 kB / 0.9568 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.036e-05/0.7622, allocations: 115.8 kB / 0.9569 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.7622, allocations: 26.95 kB / 0.957 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.973e-05/0.7622, allocations: 90.31 kB / 0.9571 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.7622, allocations: 27.92 kB / 0.9571 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.7622, allocations: 4 kB / 0.9571 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.585e-05/0.7623, allocations: 317.6 kB / 0.9574 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.777e-05/0.7624, allocations: 37.36 kB / 0.9574 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.101e-05/0.7625, allocations: 46.5 kB / 0.9575 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.852e-05/0.7626, allocations: 28.56 kB / 0.9575 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.7626, allocations: 0 / 0.9575 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001907/0.7628, allocations: 124.6 kB / 0.9576 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.7628, allocations: 5.812 kB / 0.9576 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.7628, allocations: 0 / 0.9576 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.7628, allocations: 5.078 kB / 0.9576 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.451e-05/0.7629, allocations: 18.7 kB / 0.9576 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.7629, allocations: 5.094 kB / 0.9576 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.732e-05/0.763, allocations: 9.469 kB / 0.9577 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.763, allocations: 7.172 kB / 0.9577 GB, free: 4.508 MB / 0.7169 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.soc.charged,soc.charged,$PRE.soc.discharged,soc.discharged,soc.suspend) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.184e-05/0.7631, allocations: 123.5 kB / 0.9578 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.7631, allocations: 4.531 kB / 0.9578 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.7631, allocations: 9.688 kB / 0.9578 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.7631, allocations: 1.094 kB / 0.9578 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.7631, allocations: 7.891 kB / 0.9578 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.7632, allocations: 5.016 kB / 0.9578 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.7633, allocations: 202 kB / 0.958 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7633, allocations: 0 / 0.958 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.626e-05/0.7634, allocations: 12.88 kB / 0.958 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.7634, allocations: 5.062 kB / 0.958 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.7634, allocations: 9.172 kB / 0.958 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.7634, allocations: 1.312 kB / 0.958 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7634, allocations: 0 / 0.958 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.7638, allocations: 215 kB / 0.9582 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.355e-05/0.7638, allocations: 94.94 kB / 0.9583 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.7638, allocations: 2.281 kB / 0.9583 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.091e-05/0.7639, allocations: 13.39 kB / 0.9583 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.764, allocations: 9.359 kB / 0.9583 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.764, allocations: 7.297 kB / 0.9584 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.763e-05/0.764, allocations: 94.31 kB / 0.9584 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.764, allocations: 0 / 0.9584 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001952/0.7642, allocations: 23.11 kB / 0.9585 GB, free: 3.758 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000105/0.7643, allocations: 114.3 kB / 0.9586 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002132/0.7645, allocations: 87.2 kB / 0.9587 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.7646, allocations: 1.5 kB / 0.9587 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.7647, allocations: 65.27 kB / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.7648, allocations: 13.55 kB / 0.9587 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004352/0.7653, allocations: 307 kB / 0.959 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.7654, allocations: 0.6924 MB / 0.9597 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.063e-05/0.7655, allocations: 12.41 kB / 0.9597 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.7655, allocations: 15.33 kB / 0.9597 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7655, allocations: 0 / 0.9597 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of Templates: time 0.003062/0.7686, allocations: 0.876 MB / 0.9606 GB, free: 2.176 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches