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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 225.6 MB / 249.4 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.913/2.913, allocations: 496.2 MB / 0.7819 GB, free: 12.26 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001968/0.001968, allocations: 71.89 kB / 1.136 GB, free: 12.41 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045/1.047, allocations: 173.6 MB / 1.305 GB, free: 33.46 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002696/1.05, allocations: 1.59 MB / 1.307 GB, free: 32.37 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007144/1.051, allocations: 448.6 kB / 1.307 GB, free: 32.07 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.387e-05/1.051, allocations: 0 / 1.307 GB, free: 32.07 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.21e-05/1.051, allocations: 3.938 kB / 1.307 GB, free: 32.06 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.637e-05/1.051, allocations: 18.77 kB / 1.307 GB, free: 32.05 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/1.051, allocations: 31.7 kB / 1.307 GB, free: 32.03 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/1.051, allocations: 67.95 kB / 1.308 GB, free: 32 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/1.051, allocations: 10.25 kB / 1.308 GB, free: 32 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.832e-05/1.051, allocations: 33.45 kB / 1.308 GB, free: 31.98 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.518e-05/1.051, allocations: 38.64 kB / 1.308 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/1.051, allocations: 5.062 kB / 1.308 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.375e-05/1.051, allocations: 5.438 kB / 1.308 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.506e-05/1.051, allocations: 14.09 kB / 1.308 GB, free: 31.95 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.92e-05/1.051, allocations: 27.36 kB / 1.308 GB, free: 31.94 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001188/1.052, allocations: 74.17 kB / 1.308 GB, free: 31.91 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.052, allocations: 0 / 1.308 GB, free: 31.91 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.333e-06/1.052, allocations: 0 / 1.308 GB, free: 31.91 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.31e-06/1.052, allocations: 0 / 1.308 GB, free: 31.91 MB / 1.061 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.0005426/1.052, allocations: 375.2 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/1.052, allocations: 11.77 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/1.052, allocations: 10.33 kB / 1.308 GB, free: 31.53 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.647e-05/1.052, allocations: 171 kB / 1.308 GB, free: 31.33 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/1.052, allocations: 6.875 kB / 1.308 GB, free: 31.32 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/1.052, allocations: 13.05 kB / 1.308 GB, free: 31.32 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/1.052, allocations: 82.67 kB / 1.308 GB, free: 31.27 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.053, allocations: 0 / 1.308 GB, free: 31.27 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/1.053, allocations: 4 kB / 1.308 GB, free: 31.27 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/1.053, allocations: 2.938 kB / 1.308 GB, free: 31.27 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/1.053, allocations: 46.22 kB / 1.308 GB, free: 31.25 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004783/1.053, allocations: 320.9 kB / 1.309 GB, free: 30.95 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/1.053, allocations: 88.06 kB / 1.309 GB, free: 30.9 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.614e-05/1.053, allocations: 35.33 kB / 1.309 GB, free: 30.88 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/1.053, allocations: 3.281 kB / 1.309 GB, free: 30.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/1.054, allocations: 122.9 kB / 1.309 GB, free: 30.8 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.472e-06/1.054, allocations: 0 / 1.309 GB, free: 30.8 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0003388/1.054, allocations: 171.1 kB / 1.309 GB, free: 30.73 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/1.054, allocations: 54 kB / 1.309 GB, free: 30.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.908e-05/1.054, allocations: 115.5 kB / 1.309 GB, free: 30.56 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/1.054, allocations: 33.64 kB / 1.309 GB, free: 30.52 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.52e-05/1.054, allocations: 91.19 kB / 1.309 GB, free: 30.43 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/1.054, allocations: 25.98 kB / 1.309 GB, free: 30.41 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/1.054, allocations: 29.59 kB / 1.309 GB, free: 30.39 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.395e-05/1.054, allocations: 325.6 kB / 1.31 GB, free: 30.07 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.226e-05/1.054, allocations: 31.86 kB / 1.31 GB, free: 30.06 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.319e-05/1.054, allocations: 48.62 kB / 1.31 GB, free: 30.03 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/1.055, allocations: 66.17 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.055, allocations: 2.938 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001729/1.055, allocations: 109.5 kB / 1.31 GB, free: 29.93 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/1.055, allocations: 5.844 kB / 1.31 GB, free: 29.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/1.055, allocations: 3.938 kB / 1.31 GB, free: 29.93 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/1.055, allocations: 2.812 kB / 1.31 GB, free: 29.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.018e-05/1.055, allocations: 12.56 kB / 1.31 GB, free: 29.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/1.055, allocations: 3.938 kB / 1.31 GB, free: 29.93 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.653e-05/1.055, allocations: 20.89 kB / 1.31 GB, free: 29.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.637e-06/1.055, allocations: 2.969 kB / 1.31 GB, free: 29.91 MB / 1.061 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 6.274e-05/1.055, allocations: 119.5 kB / 1.31 GB, free: 29.79 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/1.055, allocations: 6.797 kB / 1.31 GB, free: 29.79 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.072e-05/1.055, allocations: 18.48 kB / 1.31 GB, free: 29.78 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/1.055, allocations: 0 / 1.31 GB, free: 29.78 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/1.055, allocations: 0 / 1.31 GB, free: 29.78 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/1.055, allocations: 0 / 1.31 GB, free: 29.78 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/1.055, allocations: 199.7 kB / 1.31 GB, free: 29.56 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/1.055, allocations: 4 kB / 1.31 GB, free: 29.56 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.996e-05/1.055, allocations: 11.56 kB / 1.31 GB, free: 29.56 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/1.055, allocations: 0 / 1.31 GB, free: 29.56 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/1.055, allocations: 6.297 kB / 1.31 GB, free: 29.56 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.055, allocations: 3.938 kB / 1.31 GB, free: 29.55 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/1.055, allocations: 0 / 1.31 GB, free: 29.55 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002981/1.056, allocations: 217.9 kB / 1.311 GB, free: 29.43 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.106e-05/1.056, allocations: 87.23 kB / 1.311 GB, free: 29.33 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/1.056, allocations: 11.19 kB / 1.311 GB, free: 29.32 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.622e-05/1.056, allocations: 6.938 kB / 1.311 GB, free: 29.32 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/1.056, allocations: 17.09 kB / 1.311 GB, free: 29.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/1.056, allocations: 2.969 kB / 1.311 GB, free: 29.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.682e-05/1.056, allocations: 88.48 kB / 1.311 GB, free: 29.24 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.056, allocations: 0 / 1.311 GB, free: 29.24 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001953/1.056, allocations: 18.56 kB / 1.311 GB, free: 29.24 MB / 1.061 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.0001036/1.056, allocations: 119.6 kB / 1.311 GB, free: 29.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002184/1.056, allocations: 87.28 kB / 1.311 GB, free: 29.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.056, allocations: 3.938 kB / 1.311 GB, free: 29.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.485e-05/1.056, allocations: 51.3 kB / 1.311 GB, free: 29.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/1.057, allocations: 15.94 kB / 1.311 GB, free: 29.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005306/1.057, allocations: 267.9 kB / 1.311 GB, free: 28.89 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/1.057, allocations: 0.6921 MB / 1.312 GB, free: 28.19 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.618e-05/1.057, allocations: 13.09 kB / 1.312 GB, free: 28.19 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/1.057, allocations: 9.969 kB / 1.312 GB, free: 28.18 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/1.057, allocations: 2.594 kB / 1.312 GB, free: 28.18 MB / 1.061 GB Notification: Performance of Templates: time 0.003573/1.061, allocations: 1.114 MB / 1.313 GB, free: 28.07 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 9.385926760733128]