Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009437/0.0009437, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.000999/0.000999, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.917/0.917, allocations: 177.2 MB / 203.8 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.347/2.347, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.183e-06/1.183e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.603e-05/1.721e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001837/0.001854, allocations: 1.636 MB / 0.8402 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0006798/0.002534, allocations: 0.4987 MB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.322e-05/0.002597, allocations: 0 / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.002626, allocations: 7.922 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.175e-05/0.002688, allocations: 11.88 kB / 0.8407 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.002904, allocations: 39.83 kB / 0.8407 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.003016, allocations: 75.75 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.832e-05/0.003084, allocations: 8 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.003211, allocations: 59.81 kB / 0.8409 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.003272, allocations: 27.95 kB / 0.8409 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.00329, allocations: 8 kB / 0.8409 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 3.901e-05/0.003329, allocations: 8 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.003347, allocations: 15.94 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.834e-05/0.003375, allocations: 19.97 kB / 0.8409 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 9.746e-05/0.003473, allocations: 59.8 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.003475, allocations: 0 / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.21e-07/0.003475, allocations: 0 / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.866e-06/0.003478, allocations: 0 / 0.841 GB, free: 11.71 MB / 0.8073 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.0003207/0.003799, allocations: 276.7 kB / 0.8413 GB, free: 11.42 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.003829, allocations: 8.031 kB / 0.8413 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.147e-05/0.00392, allocations: 20.92 kB / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.004039, allocations: 125.7 kB / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.004053, allocations: 384 / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.004073, allocations: 12.38 kB / 0.8414 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.564e-05/0.004169, allocations: 82.89 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.004175, allocations: 4.125 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.004183, allocations: 384 / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.00419, allocations: 3.938 kB / 0.8415 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.949e-05/0.004229, allocations: 27.92 kB / 0.8415 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.00448, allocations: 180.2 kB / 0.8417 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.004608, allocations: 70.52 kB / 0.8418 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.404e-05/0.004632, allocations: 20.86 kB / 0.8418 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.004644, allocations: 4 kB / 0.8418 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/0.004753, allocations: 99.5 kB / 0.8419 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.004754, allocations: 4 kB / 0.8419 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0001414/0.004896, allocations: 105.5 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.004929, allocations: 59.34 kB / 0.8421 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.071e-05/0.00498, allocations: 118.6 kB / 0.8422 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.004995, allocations: 29.7 kB / 0.8422 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.882e-05/0.005024, allocations: 88.33 kB / 0.8423 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.005048, allocations: 27.83 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.005079, allocations: 25.7 kB / 0.8423 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.529e-05/0.005144, allocations: 318.8 kB / 0.8426 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.602e-05/0.00516, allocations: 12 kB / 0.8427 GB, free: 9.867 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.013e-05/0.00519, allocations: 29.69 kB / 0.8427 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.19e-05/0.005232, allocations: 41.69 kB / 0.8427 GB, free: 9.785 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.005234, allocations: 0 / 0.8427 GB, free: 9.785 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 7.158e-05/0.005306, allocations: 73.61 kB / 0.8428 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.005318, allocations: 11.92 kB / 0.8428 GB, free: 9.695 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.005322, allocations: 3.984 kB / 0.8428 GB, free: 9.691 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.005334, allocations: 4 kB / 0.8428 GB, free: 9.688 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.085e-05/0.005375, allocations: 15.88 kB / 0.8428 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.136e-06/0.005378, allocations: 0 / 0.8428 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.004e-05/0.005408, allocations: 19.88 kB / 0.8428 GB, free: 9.652 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.005413, allocations: 0 / 0.8428 GB, free: 9.652 MB / 0.8073 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 5.393e-05/0.005467, allocations: 117.8 kB / 0.843 GB, free: 9.527 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.005479, allocations: 11.98 kB / 0.843 GB, free: 9.516 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.005498, allocations: 16.38 kB / 0.843 GB, free: 9.504 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.0055, allocations: 0 / 0.843 GB, free: 9.504 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.005501, allocations: 0 / 0.843 GB, free: 9.504 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.005505, allocations: 0 / 0.843 GB, free: 9.504 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.006e-05/0.005575, allocations: 89.86 kB / 0.8431 GB, free: 9.398 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.005576, allocations: 3.984 kB / 0.8431 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.065e-05/0.005607, allocations: 11.94 kB / 0.8431 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.005608, allocations: 0 / 0.8431 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.005616, allocations: 8 kB / 0.8431 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.005618, allocations: 4 kB / 0.8431 GB, free: 9.371 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.00562, allocations: 7.922 kB / 0.8431 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.005742, allocations: 125 kB / 0.8432 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.596e-06/0.00575, allocations: 11.94 kB / 0.8432 GB, free: 9.211 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.005763, allocations: 0 / 0.8432 GB, free: 9.211 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.107e-05/0.005784, allocations: 8 kB / 0.8432 GB, free: 9.203 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.005817, allocations: 15.91 kB / 0.8433 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.005825, allocations: 11.98 kB / 0.8433 GB, free: 9.176 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.419e-05/0.005839, allocations: 21.09 kB / 0.8433 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.005839, allocations: 4.031 kB / 0.8433 GB, free: 9.148 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001034/0.005942, allocations: 20 kB / 0.8433 GB, free: 9.129 MB / 0.8073 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 7.077e-05/0.006013, allocations: 84.41 kB / 0.8434 GB, free: 9.035 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.389e-05/0.006097, allocations: 53.48 kB / 0.8434 GB, free: 8.98 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.006106, allocations: 0 / 0.8434 GB, free: 8.98 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.758e-05/0.006143, allocations: 37.06 kB / 0.8435 GB, free: 8.941 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.776e-05/0.006231, allocations: 21.92 kB / 0.8435 GB, free: 8.922 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000395/0.006626, allocations: 252.4 kB / 0.8437 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.839e-05/0.006654, allocations: 68.17 kB / 0.8438 GB, free: 8.562 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.988e-05/0.006684, allocations: 8.734 kB / 0.8438 GB, free: 8.555 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.006734, allocations: 63.36 kB / 0.8439 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of SimCode: time 4.01e-07/0.006735, allocations: 0 / 0.8439 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of Templates: time 0.002465/0.0092, allocations: 1.219 MB / 0.8451 GB, free: 7.293 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.466466203797609]