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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001296/0.001296, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 198.5 kB / 16.26 MB, free: 6.625 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 63.89 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7671/0.7695, allocations: 140.4 MB / 0.9491 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002839/0.7724, allocations: 1.616 MB / 0.9507 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006509/0.773, allocations: 446 kB / 0.9511 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.691e-05/0.7731, allocations: 1.75 kB / 0.9511 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.015e-05/0.7732, allocations: 3.938 kB / 0.9511 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.616e-05/0.7732, allocations: 13.22 kB / 0.9511 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.7735, allocations: 20.7 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.343e-05/0.7736, allocations: 77.17 kB / 0.9512 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.7737, allocations: 13.58 kB / 0.9512 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.409e-05/0.7738, allocations: 32.97 kB / 0.9513 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.21e-05/0.7739, allocations: 36.67 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.7739, allocations: 5.719 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.7739, allocations: 7 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.7739, allocations: 11.09 kB / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.987e-05/0.774, allocations: 32.45 kB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.7741, allocations: 64.61 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.7741, allocations: 7.938 kB / 0.9514 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7741, allocations: 0 / 0.9514 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.7741, allocations: 0 / 0.9514 GB, free: 7.332 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.0005071/0.7746, allocations: 373.3 kB / 0.9518 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.7747, allocations: 9.625 kB / 0.9518 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.7747, allocations: 8.969 kB / 0.9518 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.79e-05/0.7748, allocations: 171.1 kB / 0.952 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.7748, allocations: 7.125 kB / 0.952 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.7749, allocations: 13.88 kB / 0.952 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.7751, allocations: 90.3 kB / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.7751, allocations: 0 / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.7751, allocations: 5.141 kB / 0.9521 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.7751, allocations: 1.188 kB / 0.9521 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.7752, allocations: 47.2 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004715/0.7757, allocations: 320.5 kB / 0.9524 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.776, allocations: 99.27 kB / 0.9525 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.15e-05/0.7761, allocations: 41.84 kB / 0.9526 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.7761, allocations: 4.984 kB / 0.9526 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.7763, allocations: 120.1 kB / 0.9527 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.7763, allocations: 1.156 kB / 0.9527 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003639/0.7767, allocations: 175.3 kB / 0.9529 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.7768, allocations: 57.02 kB / 0.9529 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.571e-05/0.7768, allocations: 108 kB / 0.953 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.7768, allocations: 30.95 kB / 0.953 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.131e-05/0.7769, allocations: 90.75 kB / 0.9531 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.7769, allocations: 31.77 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.777, allocations: 27.06 kB / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.984e-05/0.7771, allocations: 324.2 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.609e-05/0.7771, allocations: 27.92 kB / 0.9535 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.068e-05/0.7772, allocations: 45.52 kB / 0.9536 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.7774, allocations: 76.28 kB / 0.9536 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.7774, allocations: 0 / 0.9536 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001807/0.7776, allocations: 106.4 kB / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.7776, allocations: 5.625 kB / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.7776, allocations: 0 / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.7776, allocations: 1.25 kB / 0.9537 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.079e-05/0.7777, allocations: 18.2 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.7777, allocations: 320 / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.415e-05/0.7778, allocations: 16.95 kB / 0.9538 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.7778, allocations: 3.969 kB / 0.9538 GB, free: 5.16 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 6.71e-05/0.7779, allocations: 123.1 kB / 0.9539 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.7779, allocations: 8.812 kB / 0.9539 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.7779, allocations: 13.41 kB / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.7779, allocations: 1.219 kB / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.7779, allocations: 5.172 kB / 0.9539 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.7779, allocations: 0 / 0.9539 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.7781, allocations: 201.5 kB / 0.9541 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7781, allocations: 5.406 kB / 0.9541 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.219e-05/0.7781, allocations: 14.45 kB / 0.9541 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.7782, allocations: 1.406 kB / 0.9541 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.7782, allocations: 1.156 kB / 0.9541 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.7782, allocations: 1.094 kB / 0.9541 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.7782, allocations: 4 kB / 0.9541 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.7785, allocations: 223.1 kB / 0.9544 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.075e-05/0.7785, allocations: 86.45 kB / 0.9544 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.7786, allocations: 6.719 kB / 0.9544 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.73e-05/0.7786, allocations: 8.266 kB / 0.9545 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.7787, allocations: 16.92 kB / 0.9545 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.7787, allocations: 7.734 kB / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.679e-05/0.7788, allocations: 90.86 kB / 0.9546 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7788, allocations: 0 / 0.9546 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001963/0.779, allocations: 15.47 kB / 0.9546 GB, free: 4.414 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.0001083/0.7791, allocations: 118.2 kB / 0.9547 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.7793, allocations: 96.89 kB / 0.9548 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7793, allocations: 1.219 kB / 0.9548 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.7794, allocations: 67.59 kB / 0.9549 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.7796, allocations: 13.62 kB / 0.9549 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004799/0.7801, allocations: 265.5 kB / 0.9551 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.7803, allocations: 0.6983 MB / 0.9558 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.999e-05/0.7803, allocations: 3.734 kB / 0.9558 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/0.7804, allocations: 17.55 kB / 0.9558 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.7804, allocations: 0 / 0.9558 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of Templates: time 0.00331/0.7837, allocations: 0.9914 MB / 0.9568 GB, free: 2.781 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/jenkins/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