Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 183.2 kB / 16.92 MB, free: 6.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.427/2.427, allocations: 390.9 MB / 0.667 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005458/0.0005457, allocations: 16 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8524/0.853, allocations: 142.4 MB / 0.9557 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001852/0.8549, allocations: 1.29 MB / 0.957 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006269/0.8555, allocations: 437.7 kB / 0.9574 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.8556, allocations: 0 / 0.9574 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.186e-05/0.8556, allocations: 5.125 kB / 0.9574 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.206e-05/0.8557, allocations: 9.031 kB / 0.9574 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000209/0.8559, allocations: 28.48 kB / 0.9574 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.856, allocations: 69.12 kB / 0.9575 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.8561, allocations: 8.391 kB / 0.9575 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.8562, allocations: 33.22 kB / 0.9575 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.812e-05/0.8563, allocations: 28.94 kB / 0.9576 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.8564, allocations: 2.312 kB / 0.9576 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.51e-05/0.8564, allocations: 7.375 kB / 0.9576 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.8564, allocations: 14.2 kB / 0.9576 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.439e-05/0.8565, allocations: 58.02 kB / 0.9576 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.537e-05/0.8566, allocations: 41.22 kB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.8566, allocations: 3.938 kB / 0.9577 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.535e-06/0.8566, allocations: 1.219 kB / 0.9577 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.8566, allocations: 0 / 0.9577 GB, free: 6.16 MB / 0.7169 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.0004747/0.8571, allocations: 364.7 kB / 0.958 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.8571, allocations: 9.344 kB / 0.958 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.8572, allocations: 5.531 kB / 0.958 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.814e-05/0.8573, allocations: 171.4 kB / 0.9582 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.8573, allocations: 10.72 kB / 0.9582 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.809e-05/0.8573, allocations: 9.797 kB / 0.9582 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.8575, allocations: 91.77 kB / 0.9583 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.8575, allocations: 0 / 0.9583 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.8576, allocations: 1.312 kB / 0.9583 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.8576, allocations: 5.406 kB / 0.9583 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.8577, allocations: 51.45 kB / 0.9584 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000483/0.8582, allocations: 317 kB / 0.9587 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.8585, allocations: 116.5 kB / 0.9588 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.377e-05/0.8586, allocations: 42.94 kB / 0.9588 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.8586, allocations: 1.281 kB / 0.9588 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/0.8589, allocations: 119.1 kB / 0.9589 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.8589, allocations: 0 / 0.9589 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003818/0.8593, allocations: 181.6 kB / 0.9591 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.8593, allocations: 57 kB / 0.9592 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.084e-05/0.8594, allocations: 108.8 kB / 0.9593 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.8594, allocations: 29.7 kB / 0.9593 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.611e-05/0.8595, allocations: 87.41 kB / 0.9594 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.8595, allocations: 39.69 kB / 0.9594 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.8595, allocations: 21.2 kB / 0.9594 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.569e-05/0.8596, allocations: 322 kB / 0.9598 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.672e-05/0.8597, allocations: 29.92 kB / 0.9598 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.933e-05/0.8598, allocations: 46.47 kB / 0.9598 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.8599, allocations: 75.73 kB / 0.9599 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.8599, allocations: 1.812 kB / 0.9599 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002052/0.8601, allocations: 112.4 kB / 0.96 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.8602, allocations: 14.52 kB / 0.96 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.8602, allocations: 0 / 0.96 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.8602, allocations: 5.375 kB / 0.96 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.8603, allocations: 14.94 kB / 0.96 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.8603, allocations: 1.375 kB / 0.96 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-05/0.8603, allocations: 9.484 kB / 0.96 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.8604, allocations: 6.75 kB / 0.9601 GB, free: 3.988 MB / 0.7169 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 7.202e-05/0.8604, allocations: 117.9 kB / 0.9602 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.8605, allocations: 13.39 kB / 0.9602 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/0.8605, allocations: 13.75 kB / 0.9602 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.8605, allocations: 1.375 kB / 0.9602 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.8605, allocations: 0 / 0.9602 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.8605, allocations: 0 / 0.9602 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.8606, allocations: 201.9 kB / 0.9604 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.8606, allocations: 1.375 kB / 0.9604 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.049e-05/0.8607, allocations: 12.23 kB / 0.9604 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.8607, allocations: 0 / 0.9604 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.8607, allocations: 5.375 kB / 0.9604 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.8608, allocations: 1.375 kB / 0.9604 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.8608, allocations: 0 / 0.9604 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/0.8611, allocations: 227.7 kB / 0.9606 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.709e-05/0.8612, allocations: 83.77 kB / 0.9607 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.8612, allocations: 2.75 kB / 0.9607 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.925e-05/0.8613, allocations: 12.11 kB / 0.9607 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.8613, allocations: 21.47 kB / 0.9607 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.8613, allocations: 8.125 kB / 0.9607 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.257e-05/0.8614, allocations: 86.14 kB / 0.9608 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8614, allocations: 0 / 0.9608 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001933/0.8616, allocations: 19.12 kB / 0.9608 GB, free: 3.254 MB / 0.7169 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.000111/0.8617, allocations: 106.5 kB / 0.9609 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002389/0.862, allocations: 105.1 kB / 0.961 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.862, allocations: 0 / 0.961 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.8621, allocations: 70.91 kB / 0.9611 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.8623, allocations: 16.48 kB / 0.9611 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004797/0.8628, allocations: 326.7 kB / 0.9614 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.8629, allocations: 0.6975 MB / 0.9621 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.832e-05/0.863, allocations: 12.84 kB / 0.9621 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.863, allocations: 0 / 0.9621 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of Templates: time 0.002617/0.8656, allocations: 1.108 MB / 0.9632 GB, free: 1.508 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches