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.001518/0.001518, allocations: 84.39 kB / 20.23 MB, free: 4.176 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.001519/0.001519, allocations: 161.7 kB / 23.55 MB, free: 0.8633 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 1.502/1.502, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 2.965/2.965, allocations: 377.8 MB / 0.6232 GB, free: 8.492 MB / 0.5886 GB " [Timeout remaining time 176] 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.593e-06/1.593e-06, allocations: 0 / 0.8108 GB, free: 2.062 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.87e-05/3.03e-05, allocations: 8.641 kB / 0.8108 GB, free: 2.055 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00371/0.003741, allocations: 1.595 MB / 0.8124 GB, free: 480 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.005186, allocations: 493.2 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.875e-05/0.005265, allocations: 4 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.576e-05/0.0053, allocations: 3.938 kB / 0.8129 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.949e-05/0.00539, allocations: 13.66 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.00571, allocations: 47.81 kB / 0.8129 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001837/0.005894, allocations: 63.84 kB / 0.813 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.639e-05/0.00599, allocations: 9.578 kB / 0.813 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.006209, allocations: 55.83 kB / 0.813 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.817e-05/0.006307, allocations: 27.89 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.006329, allocations: 8 kB / 0.8131 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.531e-05/0.006384, allocations: 9.594 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.006418, allocations: 19.97 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.896e-05/0.006477, allocations: 23.92 kB / 0.8131 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.006654, allocations: 75.7 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.006658, allocations: 0.5312 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.72e-07/0.006659, allocations: 0 / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.006663, allocations: 1.312 kB / 0.8132 GB, free: 15.63 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.0006809/0.007344, allocations: 303.3 kB / 0.8135 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.007388, allocations: 8.031 kB / 0.8135 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.007581, allocations: 16.92 kB / 0.8135 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.007862, allocations: 131 kB / 0.8136 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.007888, allocations: 8.375 kB / 0.8137 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.007923, allocations: 8.312 kB / 0.8137 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.008156, allocations: 79.77 kB / 0.8137 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.008165, allocations: 192 / 0.8137 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.008185, allocations: 8.375 kB / 0.8137 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.008193, allocations: 3.938 kB / 0.8137 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.008345, allocations: 45.3 kB / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006047/0.00895, allocations: 256.9 kB / 0.814 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.009251, allocations: 79.08 kB / 0.8141 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.009357, allocations: 38.78 kB / 0.8141 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.009378, allocations: 4 kB / 0.8142 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.009653, allocations: 117.5 kB / 0.8143 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.009655, allocations: 0 / 0.8143 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0007605/0.01042, allocations: 177.5 kB / 0.8144 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.01048, allocations: 55.39 kB / 0.8145 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.01061, allocations: 114.4 kB / 0.8146 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.01064, allocations: 29.7 kB / 0.8146 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.736e-05/0.01072, allocations: 89.09 kB / 0.8147 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.57e-05/0.01077, allocations: 35.88 kB / 0.8147 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.405e-05/0.01083, allocations: 26.25 kB / 0.8148 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000202/0.01104, allocations: 323.8 kB / 0.8151 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.439e-05/0.01113, allocations: 27.98 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.01123, allocations: 50.31 kB / 0.8152 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.0114, allocations: 70.67 kB / 0.8152 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.0114, allocations: 0 / 0.8152 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002866/0.01169, allocations: 122.7 kB / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.0117, allocations: 4 kB / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.01171, allocations: 0 / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.01173, allocations: 1.531 kB / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.096e-05/0.01181, allocations: 15.98 kB / 0.8154 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.01181, allocations: 0 / 0.8154 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.418e-05/0.01191, allocations: 20.88 kB / 0.8154 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.01192, allocations: 4 kB / 0.8154 GB, free: 13.24 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 0.0001139/0.01204, allocations: 119.9 kB / 0.8155 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.01207, allocations: 19.88 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.01211, allocations: 12.44 kB / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.01211, allocations: 0 / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.01211, allocations: 0 / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.01212, allocations: 2.281 kB / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.01228, allocations: 137.2 kB / 0.8157 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.01228, allocations: 0 / 0.8157 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-05/0.01236, allocations: 8 kB / 0.8157 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.01237, allocations: 7.922 kB / 0.8157 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.01238, allocations: 12 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.01239, allocations: 1.125 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01239, allocations: 3.938 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000473/0.01286, allocations: 214 kB / 0.8159 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.24e-05/0.01287, allocations: 7.984 kB / 0.8159 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.0129, allocations: 11.94 kB / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.607e-05/0.01298, allocations: 12.89 kB / 0.8159 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.01304, allocations: 15.97 kB / 0.8159 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.01306, allocations: 5.688 kB / 0.8159 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.878e-05/0.01313, allocations: 91.64 kB / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01313, allocations: 0 / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002201/0.01335, allocations: 20 kB / 0.8161 GB, free: 12.5 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.0001515/0.0135, allocations: 109 kB / 0.8162 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002463/0.01374, allocations: 79.97 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01375, allocations: 0.5 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.01387, allocations: 52.5 kB / 0.8163 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.0141, allocations: 23.67 kB / 0.8163 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005615/0.01466, allocations: 243.2 kB / 0.8165 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.346e-05/0.01475, allocations: 83.19 kB / 0.8166 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.552e-05/0.01479, allocations: 4.734 kB / 0.8166 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.818e-05/0.01484, allocations: 16.5 kB / 0.8166 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of SimCode: time 7.22e-07/0.01484, allocations: 0 / 0.8166 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of Templates: time 0.004382/0.01922, allocations: 1.12 MB / 0.8177 GB, free: 10.77 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.791044567013159]