Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009316/0.0009316, allocations: 80.92 kB / 20.75 MB, free: 3.738 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009999/0.0009999, allocations: 165 kB / 24.17 MB, free: 328 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9992/0.9992, allocations: 177.1 MB / 204.6 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 2.066/2.066, allocations: 377.9 MB / 0.624 GB, free: 8.352 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.999e-06/4.999e-06, allocations: 0 / 0.7601 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.375e-05/2.874e-05, allocations: 6.938 kB / 0.7601 GB, free: 6.57 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003055/0.003083, allocations: 1.681 MB / 0.7617 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0009015/0.003985, allocations: 0.4942 MB / 0.7622 GB, free: 4.41 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.767e-05/0.004063, allocations: 4 kB / 0.7622 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.024e-05/0.004093, allocations: 5.188 kB / 0.7622 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 8.127e-05/0.004174, allocations: 12.19 kB / 0.7622 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.004413, allocations: 46.17 kB / 0.7623 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.000142/0.004555, allocations: 72.95 kB / 0.7623 GB, free: 4.289 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.692e-05/0.004642, allocations: 15.97 kB / 0.7623 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.004806, allocations: 53.58 kB / 0.7624 GB, free: 4.223 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 7.069e-05/0.004876, allocations: 19.97 kB / 0.7624 GB, free: 4.203 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.004895, allocations: 8 kB / 0.7624 GB, free: 4.195 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.378e-05/0.004959, allocations: 11.98 kB / 0.7624 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.337e-05/0.004982, allocations: 21.14 kB / 0.7625 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.005017, allocations: 23.97 kB / 0.7625 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.005136, allocations: 55.81 kB / 0.7625 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.005139, allocations: 1.438 kB / 0.7625 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.433e-06/0.00514, allocations: 0 / 0.7625 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.005144, allocations: 0 / 0.7625 GB, free: 4.086 MB / 0.7136 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.0003782/0.005522, allocations: 269.3 kB / 0.7628 GB, free: 3.801 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.005557, allocations: 12.02 kB / 0.7628 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.00568, allocations: 25.67 kB / 0.7628 GB, free: 3.766 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.005973, allocations: 126.3 kB / 0.7629 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.005991, allocations: 384 / 0.7629 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.006014, allocations: 13.08 kB / 0.763 GB, free: 3.605 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.00614, allocations: 82.89 kB / 0.763 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.006148, allocations: 1.062 kB / 0.763 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.006157, allocations: 384 / 0.763 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.006164, allocations: 5.25 kB / 0.763 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.208e-05/0.006206, allocations: 27.86 kB / 0.7631 GB, free: 3.484 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002938/0.0065, allocations: 180.8 kB / 0.7632 GB, free: 3.293 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.006651, allocations: 63.7 kB / 0.7633 GB, free: 3.223 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.918e-05/0.00668, allocations: 20.84 kB / 0.7633 GB, free: 3.199 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.006695, allocations: 4 kB / 0.7633 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/0.006851, allocations: 96.45 kB / 0.7634 GB, free: 3.09 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 2.043e-06/0.006853, allocations: 1.031 kB / 0.7634 GB, free: 3.09 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0001708/0.007023, allocations: 93.59 kB / 0.7635 GB, free: 2.992 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.007061, allocations: 60.34 kB / 0.7636 GB, free: 2.922 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.602e-05/0.007128, allocations: 126.7 kB / 0.7637 GB, free: 2.785 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.007142, allocations: 33.62 kB / 0.7637 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.261e-05/0.007175, allocations: 89.25 kB / 0.7638 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.007206, allocations: 23.8 kB / 0.7638 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.007252, allocations: 36.44 kB / 0.7639 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.007336, allocations: 322.8 kB / 0.7642 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.318e-05/0.00736, allocations: 12 kB / 0.7642 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.722e-05/0.007397, allocations: 33.69 kB / 0.7642 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.004e-05/0.007457, allocations: 38.12 kB / 0.7643 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.007459, allocations: 0 / 0.7643 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001081/0.007567, allocations: 81.58 kB / 0.7643 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.00758, allocations: 10.72 kB / 0.7643 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.007585, allocations: 0 / 0.7643 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.007599, allocations: 4 kB / 0.7643 GB, free: 2.078 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.621e-05/0.007666, allocations: 15.92 kB / 0.7644 GB, free: 2.062 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-06/0.007669, allocations: 0 / 0.7644 GB, free: 2.062 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.962e-05/0.007709, allocations: 7.938 kB / 0.7644 GB, free: 2.055 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.007716, allocations: 7.938 kB / 0.7644 GB, free: 2.047 MB / 0.7136 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.26e-05/0.007809, allocations: 120.4 kB / 0.7645 GB, free: 1.922 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.926e-05/0.007828, allocations: 15.98 kB / 0.7645 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.47e-05/0.007853, allocations: 12.38 kB / 0.7645 GB, free: 1.895 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.007855, allocations: 0.5938 kB / 0.7645 GB, free: 1.895 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.007857, allocations: 6.156 kB / 0.7645 GB, free: 1.891 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.007861, allocations: 0 / 0.7645 GB, free: 1.891 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.565e-05/0.007956, allocations: 81.88 kB / 0.7646 GB, free: 1.793 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.007958, allocations: 4 kB / 0.7646 GB, free: 1.789 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.443e-05/0.008012, allocations: 15.92 kB / 0.7646 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.008015, allocations: 0 / 0.7646 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.008024, allocations: 2.438 kB / 0.7646 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.008026, allocations: 0 / 0.7646 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.008029, allocations: 3.938 kB / 0.7646 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.008208, allocations: 137 kB / 0.7648 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.245e-06/0.008216, allocations: 0 / 0.7648 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.008237, allocations: 15.92 kB / 0.7648 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.095e-05/0.008268, allocations: 6.094 kB / 0.7648 GB, free: 1.598 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.008314, allocations: 19.91 kB / 0.7648 GB, free: 1.578 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-06/0.008321, allocations: 0 / 0.7648 GB, free: 1.578 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.819e-05/0.00834, allocations: 20.78 kB / 0.7648 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8e-08/0.00834, allocations: 0 / 0.7648 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001714/0.008511, allocations: 23.95 kB / 0.7648 GB, free: 1.531 MB / 0.7136 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.0001047/0.008616, allocations: 86.88 kB / 0.7649 GB, free: 1.441 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001185/0.008734, allocations: 56.77 kB / 0.765 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.008738, allocations: 0 / 0.765 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.728e-05/0.008795, allocations: 40.84 kB / 0.765 GB, free: 1.34 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.008919, allocations: 14.42 kB / 0.765 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005383/0.009457, allocations: 246.2 kB / 0.7653 GB, free: 1.078 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.658e-05/0.009493, allocations: 67.28 kB / 0.7653 GB, free: 0.9922 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.577e-05/0.009539, allocations: 6.609 kB / 0.7653 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.512e-05/0.009604, allocations: 64.02 kB / 0.7654 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of SimCode: time 5.91e-07/0.009605, allocations: 0 / 0.7654 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of Templates: time 0.00336/0.01296, allocations: 1.216 MB / 0.7666 GB, free: 15.77 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.205393679905683]