Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002091/0.002091, allocations: 78.72 kB / 19.18 MB, free: 2.523 MB / 14.72 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.001662/0.001662, allocations: 166.9 kB / 22.46 MB, free: 5.371 MB / 14.72 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.54/1.54, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.822/2.822, allocations: 359 MB / 0.6037 GB, free: 14.95 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 0.951 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.953e-05/3.093e-05, allocations: 2.281 kB / 0.951 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003308/0.003339, allocations: 1.577 MB / 0.9525 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.004448, allocations: 499.3 kB / 0.953 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.997e-05/0.004518, allocations: 0 / 0.953 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.004553, allocations: 7.922 kB / 0.953 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.334e-05/0.004626, allocations: 11.86 kB / 0.953 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.00489, allocations: 39.89 kB / 0.9531 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.005065, allocations: 75.77 kB / 0.9531 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.005174, allocations: 11.98 kB / 0.9532 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.005345, allocations: 55.83 kB / 0.9532 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.005424, allocations: 19.97 kB / 0.9532 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.005447, allocations: 4 kB / 0.9532 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.569e-05/0.005502, allocations: 19.98 kB / 0.9532 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.005529, allocations: 11.92 kB / 0.9533 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.076e-05/0.00558, allocations: 19.98 kB / 0.9533 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.005759, allocations: 87.67 kB / 0.9534 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.005763, allocations: 0 / 0.9534 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.412e-06/0.005764, allocations: 0 / 0.9534 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.00577, allocations: 0 / 0.9534 GB, free: 9.086 MB / 0.8575 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.0006485/0.006419, allocations: 304 kB / 0.9537 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.006458, allocations: 8.031 kB / 0.9537 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.006612, allocations: 20.88 kB / 0.9537 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.006871, allocations: 121.7 kB / 0.9538 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.006896, allocations: 12.36 kB / 0.9538 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.006926, allocations: 8.375 kB / 0.9538 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/0.007141, allocations: 94.06 kB / 0.9539 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.00715, allocations: 192 / 0.9539 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.007166, allocations: 4.375 kB / 0.9539 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.007174, allocations: 3.938 kB / 0.9539 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.007318, allocations: 43.97 kB / 0.954 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005403/0.007858, allocations: 244.5 kB / 0.9542 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.00815, allocations: 82.48 kB / 0.9543 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.215e-05/0.008242, allocations: 36.83 kB / 0.9543 GB, free: 8.023 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.008256, allocations: 8 kB / 0.9543 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.008511, allocations: 119.4 kB / 0.9544 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.008512, allocations: 0 / 0.9544 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004311/0.008943, allocations: 177.5 kB / 0.9546 GB, free: 7.707 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.008994, allocations: 55.34 kB / 0.9546 GB, free: 7.641 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.402e-05/0.009088, allocations: 113.8 kB / 0.9548 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.009115, allocations: 29.7 kB / 0.9548 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.009176, allocations: 88.38 kB / 0.9549 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.009216, allocations: 35.73 kB / 0.9549 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.00927, allocations: 29.7 kB / 0.9549 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001604/0.00943, allocations: 314.8 kB / 0.9552 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.307e-05/0.009513, allocations: 31.98 kB / 0.9553 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.009623, allocations: 49.69 kB / 0.9553 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.00977, allocations: 69.64 kB / 0.9554 GB, free: 6.848 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.009772, allocations: 0 / 0.9554 GB, free: 6.848 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002308/0.01, allocations: 117.4 kB / 0.9555 GB, free: 6.727 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.01002, allocations: 14.8 kB / 0.9555 GB, free: 6.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.01003, allocations: 4 kB / 0.9555 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.01004, allocations: 0 / 0.9555 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.775e-05/0.01012, allocations: 12 kB / 0.9555 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.01013, allocations: 4 kB / 0.9555 GB, free: 6.695 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.898e-05/0.01021, allocations: 7.984 kB / 0.9555 GB, free: 6.688 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.01022, allocations: 8 kB / 0.9555 GB, free: 6.68 MB / 0.8575 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.0001097/0.01033, allocations: 118.2 kB / 0.9556 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.01035, allocations: 19.88 kB / 0.9557 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.01038, allocations: 8.438 kB / 0.9557 GB, free: 6.527 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.01039, allocations: 4 kB / 0.9557 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.01039, allocations: 3.938 kB / 0.9557 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.0104, allocations: 0 / 0.9557 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.01055, allocations: 141.2 kB / 0.9558 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.01055, allocations: 0 / 0.9558 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.701e-05/0.01063, allocations: 11.98 kB / 0.9558 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.01063, allocations: 3.984 kB / 0.9558 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.01065, allocations: 7.984 kB / 0.9558 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.01065, allocations: 0 / 0.9558 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.01066, allocations: 8 kB / 0.9558 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004235/0.01108, allocations: 216.9 kB / 0.9561 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.01109, allocations: 4.031 kB / 0.9561 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.01111, allocations: 3.938 kB / 0.9561 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.334e-05/0.01119, allocations: 11.98 kB / 0.9561 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.01126, allocations: 11.97 kB / 0.9561 GB, free: 6.059 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.01127, allocations: 12 kB / 0.9561 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001338/0.01141, allocations: 87.27 kB / 0.9562 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01141, allocations: 0 / 0.9562 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002042/0.01161, allocations: 24.02 kB / 0.9562 GB, free: 5.938 MB / 0.8575 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.0001501/0.01176, allocations: 103.2 kB / 0.9563 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.01201, allocations: 88.48 kB / 0.9564 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01201, allocations: 0 / 0.9564 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.01214, allocations: 56.12 kB / 0.9564 GB, free: 5.684 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.01237, allocations: 12.19 kB / 0.9564 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005647/0.01293, allocations: 233.2 kB / 0.9567 GB, free: 5.418 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.577e-05/0.01302, allocations: 71.33 kB / 0.9567 GB, free: 5.328 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.585e-05/0.01306, allocations: 12.72 kB / 0.9568 GB, free: 5.316 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.728e-05/0.01311, allocations: 20.5 kB / 0.9568 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of SimCode: time 5.11e-07/0.01311, allocations: 0 / 0.9568 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of Templates: time 0.004457/0.01757, allocations: 1.118 MB / 0.9579 GB, free: 4.211 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.362870942801237]