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.0014/0.0014, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001503/0.001503, allocations: 159 kB / 24.86 MB, free: 9.289 MB / 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.9792/0.9792, allocations: 177.2 MB / 205.3 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.896/1.896, allocations: 377.9 MB / 0.6247 GB, free: 8.41 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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 1.823e-06/1.823e-06, allocations: 0 / 0.8128 GB, free: 1.426 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.378e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.422 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002445/0.002469, allocations: 1.638 MB / 0.8144 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0007108/0.00318, allocations: 496.4 kB / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.695e-05/0.003247, allocations: 2.406 kB / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.976e-05/0.003277, allocations: 3.938 kB / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.016e-05/0.003347, allocations: 19.84 kB / 0.8149 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.003565, allocations: 39.89 kB / 0.8149 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.003679, allocations: 73.14 kB / 0.815 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.335e-05/0.003763, allocations: 11.98 kB / 0.815 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.003906, allocations: 47.84 kB / 0.815 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.531e-05/0.003971, allocations: 29.36 kB / 0.8151 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.003988, allocations: 8 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.089e-05/0.004029, allocations: 8 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.00405, allocations: 19.97 kB / 0.8151 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.82e-05/0.004078, allocations: 24.45 kB / 0.8151 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.004184, allocations: 47.88 kB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.004188, allocations: 0.5312 kB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.723e-06/0.00419, allocations: 1.125 kB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.004195, allocations: 0 / 0.8152 GB, free: 14.98 MB / 0.7761 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.000434/0.004629, allocations: 408.9 kB / 0.8156 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.004666, allocations: 11.97 kB / 0.8156 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.004803, allocations: 17.42 kB / 0.8156 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.004963, allocations: 134 kB / 0.8157 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.004984, allocations: 4.375 kB / 0.8157 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.005004, allocations: 4.375 kB / 0.8157 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.005149, allocations: 84 kB / 0.8158 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.005159, allocations: 8.125 kB / 0.8158 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.005169, allocations: 4.359 kB / 0.8158 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.005176, allocations: 4.875 kB / 0.8158 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.883e-05/0.005215, allocations: 15.98 kB / 0.8158 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003111/0.005526, allocations: 285.2 kB / 0.8161 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.005674, allocations: 80.08 kB / 0.8162 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.056e-05/0.005705, allocations: 23.67 kB / 0.8162 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.005719, allocations: 1 kB / 0.8162 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/0.005859, allocations: 106.5 kB / 0.8163 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.005861, allocations: 0 / 0.8163 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002001/0.006061, allocations: 137.5 kB / 0.8165 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.006098, allocations: 56.72 kB / 0.8165 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.00617, allocations: 169.9 kB / 0.8167 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.006184, allocations: 33.7 kB / 0.8167 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.76e-05/0.006231, allocations: 135 kB / 0.8168 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.006261, allocations: 26.88 kB / 0.8169 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.0063, allocations: 35.34 kB / 0.8169 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.006424, allocations: 0.4962 MB / 0.8174 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.068e-05/0.006445, allocations: 8 kB / 0.8174 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.338e-05/0.006478, allocations: 31.36 kB / 0.8174 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.537e-05/0.006534, allocations: 51.28 kB / 0.8175 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.006536, allocations: 0 / 0.8175 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001073/0.006643, allocations: 85.56 kB / 0.8175 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.006664, allocations: 16.38 kB / 0.8176 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.006668, allocations: 1.938 kB / 0.8176 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.006678, allocations: 0 / 0.8176 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.227e-05/0.00673, allocations: 8 kB / 0.8176 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.006735, allocations: 4 kB / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.714e-05/0.006772, allocations: 15.88 kB / 0.8176 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-06/0.006779, allocations: 5.656 kB / 0.8176 GB, free: 12.3 MB / 0.7761 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 7.86e-05/0.006858, allocations: 160.6 kB / 0.8177 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.006875, allocations: 19.83 kB / 0.8178 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.43e-05/0.006899, allocations: 17.36 kB / 0.8178 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.006903, allocations: 4 kB / 0.8178 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.006906, allocations: 0 / 0.8178 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.00691, allocations: 4.844 kB / 0.8178 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.278e-05/0.007003, allocations: 117.2 kB / 0.8179 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.007004, allocations: 0.8438 kB / 0.8179 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.105e-05/0.007045, allocations: 11.98 kB / 0.8179 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.007046, allocations: 1.281 kB / 0.8179 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.007055, allocations: 4 kB / 0.8179 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.007057, allocations: 3.938 kB / 0.8179 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.007058, allocations: 0 / 0.8179 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.007245, allocations: 189.5 kB / 0.8181 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.007253, allocations: 3.953 kB / 0.8181 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.007269, allocations: 10.59 kB / 0.8181 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.817e-05/0.007297, allocations: 11.92 kB / 0.8181 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.007336, allocations: 15.97 kB / 0.8181 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.007342, allocations: 0 / 0.8181 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.007383, allocations: 131.2 kB / 0.8183 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007383, allocations: 0 / 0.8183 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001364/0.007519, allocations: 20 kB / 0.8183 GB, free: 11.54 MB / 0.7761 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.0001122/0.007631, allocations: 106.1 kB / 0.8184 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.007741, allocations: 67.56 kB / 0.8185 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.007742, allocations: 0 / 0.8185 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.675e-05/0.007789, allocations: 43.59 kB / 0.8185 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001615/0.007951, allocations: 20.91 kB / 0.8185 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004684/0.008419, allocations: 241.5 kB / 0.8187 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.024e-05/0.008449, allocations: 59.34 kB / 0.8188 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.299e-05/0.008482, allocations: 8.719 kB / 0.8188 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.558e-05/0.008548, allocations: 86.2 kB / 0.8189 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of SimCode: time 6.82e-07/0.008549, allocations: 0 / 0.8189 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of Templates: time 0.00281/0.01136, allocations: 1.266 MB / 0.8201 GB, free: 9.637 MB / 0.7761 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 -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.2397202723659575]