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.002386/0.002386, allocations: 87.69 kB / 20.24 MB, free: 4.184 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.002907/0.002907, allocations: 157.3 kB / 23.55 MB, free: 0.875 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.634/1.634, allocations: 177.1 MB / 203.9 MB, free: 5.617 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 3.115/3.115, allocations: 377.8 MB / 0.6232 GB, free: 8.539 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.693e-06/1.693e-06, allocations: 0 / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.987e-05/3.156e-05, allocations: 6.25 kB / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003027/0.003058, allocations: 1.616 MB / 0.8124 GB, free: 0.5078 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009835/0.004042, allocations: 496.3 kB / 0.8129 GB, free: 20 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.612e-05/0.004098, allocations: 5.094 kB / 0.8129 GB, free: 16 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.018e-05/0.004128, allocations: 7.922 kB / 0.8129 GB, free: 8 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.87e-05/0.004207, allocations: 5.375 kB / 0.8129 GB, free: 4 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.004469, allocations: 47.81 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.004619, allocations: 76.48 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 7.835e-05/0.004697, allocations: 8 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.004866, allocations: 52.31 kB / 0.8131 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.611e-05/0.004942, allocations: 25.56 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.004964, allocations: 4 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.359e-05/0.005017, allocations: 15.98 kB / 0.8131 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.005043, allocations: 11.94 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.064e-05/0.005093, allocations: 24.59 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.005286, allocations: 79.75 kB / 0.8132 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.005289, allocations: 0.8125 kB / 0.8132 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.52e-07/0.00529, allocations: 0 / 0.8132 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.23e-05/0.005302, allocations: 0.5625 kB / 0.8132 GB, free: 15.67 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.0007274/0.006029, allocations: 392.7 kB / 0.8136 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.006073, allocations: 12.72 kB / 0.8136 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.006238, allocations: 24.86 kB / 0.8136 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.006499, allocations: 133.8 kB / 0.8138 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.006522, allocations: 4.359 kB / 0.8138 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.006549, allocations: 12.38 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.006748, allocations: 83.95 kB / 0.8138 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.006759, allocations: 4.125 kB / 0.8139 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.006771, allocations: 384 / 0.8139 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.006779, allocations: 3.938 kB / 0.8139 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.006922, allocations: 46.25 kB / 0.8139 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/0.00751, allocations: 295.7 kB / 0.8142 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.007834, allocations: 115 kB / 0.8143 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.987e-05/0.007934, allocations: 43.67 kB / 0.8143 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.007949, allocations: 3.438 kB / 0.8143 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.008226, allocations: 116.9 kB / 0.8145 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.008227, allocations: 0 / 0.8145 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0004622/0.00869, allocations: 185.5 kB / 0.8146 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.008744, allocations: 51.41 kB / 0.8147 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.008919, allocations: 179 kB / 0.8148 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.008948, allocations: 29.7 kB / 0.8149 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.009053, allocations: 143 kB / 0.815 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.013e-05/0.009093, allocations: 24.31 kB / 0.815 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.009178, allocations: 39.36 kB / 0.8151 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002932/0.009472, allocations: 0.4967 MB / 0.8156 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.681e-05/0.009548, allocations: 20.55 kB / 0.8156 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.009867, allocations: 56.39 kB / 0.8156 GB, free: 13 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.01001, allocations: 67.3 kB / 0.8157 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01001, allocations: 0 / 0.8157 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002582/0.01027, allocations: 122.8 kB / 0.8158 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.01029, allocations: 4 kB / 0.8158 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.01029, allocations: 6.188 kB / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.01031, allocations: 4 kB / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.439e-05/0.01038, allocations: 11.98 kB / 0.8158 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.01039, allocations: 0 / 0.8158 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.974e-05/0.01046, allocations: 15.89 kB / 0.8159 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.01047, allocations: 8.516 kB / 0.8159 GB, free: 12.75 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.0001317/0.01061, allocations: 161.4 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.01064, allocations: 27.81 kB / 0.816 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.746e-05/0.01068, allocations: 13.38 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.01068, allocations: 0 / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.01069, allocations: 1.219 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.01069, allocations: 0 / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.01086, allocations: 144.6 kB / 0.8162 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.01087, allocations: 4 kB / 0.8162 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/0.01094, allocations: 16.95 kB / 0.8162 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.01095, allocations: 3.938 kB / 0.8162 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.01096, allocations: 4.969 kB / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.01096, allocations: 0 / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01096, allocations: 0 / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004478/0.01141, allocations: 233.2 kB / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.104e-05/0.01142, allocations: 3.953 kB / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.01145, allocations: 16.95 kB / 0.8165 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.971e-05/0.0115, allocations: 0 / 0.8165 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.966e-05/0.01157, allocations: 21.09 kB / 0.8165 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.01159, allocations: 4 kB / 0.8165 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.483e-05/0.01168, allocations: 135.2 kB / 0.8166 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01168, allocations: 1.031 kB / 0.8166 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001972/0.01188, allocations: 16 kB / 0.8166 GB, free: 11.9 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.0001609/0.01204, allocations: 108.3 kB / 0.8167 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.01229, allocations: 100.1 kB / 0.8168 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01229, allocations: 0 / 0.8168 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.01242, allocations: 61.23 kB / 0.8169 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.01262, allocations: 15.98 kB / 0.8169 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005356/0.01316, allocations: 248.2 kB / 0.8171 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.803e-05/0.01324, allocations: 83.19 kB / 0.8172 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.252e-05/0.01328, allocations: 4.734 kB / 0.8172 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/0.01333, allocations: 20.48 kB / 0.8172 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of SimCode: time 5.61e-07/0.01333, allocations: 0 / 0.8172 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of Templates: time 0.004654/0.01798, allocations: 1.134 MB / 0.8184 GB, free: 10.12 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","/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: 8.494718124973588]