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.001551/0.001551, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001868/0.001868, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.411/1.411, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.419/2.419, allocations: 390.2 MB / 0.6642 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.89 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.691/0.6923, allocations: 140.4 MB / 0.9489 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00253/0.6949, allocations: 1.621 MB / 0.9505 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006153/0.6955, allocations: 442.6 kB / 0.9509 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.664e-05/0.6956, allocations: 1.031 kB / 0.9509 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.446e-05/0.6956, allocations: 0 / 0.9509 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.065e-05/0.6957, allocations: 17.19 kB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.6959, allocations: 25.23 kB / 0.951 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.094e-05/0.696, allocations: 68.22 kB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.6961, allocations: 21.98 kB / 0.9511 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.252e-05/0.6962, allocations: 24.48 kB / 0.9511 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.521e-05/0.6963, allocations: 29.66 kB / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.6963, allocations: 6.969 kB / 0.9511 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.411e-05/0.6963, allocations: 2.75 kB / 0.9511 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.622e-05/0.6964, allocations: 19.5 kB / 0.9511 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.012e-05/0.6964, allocations: 28.45 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.526e-05/0.6965, allocations: 55.56 kB / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.6965, allocations: 1 kB / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.022e-06/0.6965, allocations: 0 / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.6966, allocations: 0 / 0.9512 GB, free: 7.48 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.0005062/0.6971, allocations: 377.6 kB / 0.9516 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.6971, allocations: 9.094 kB / 0.9516 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.6972, allocations: 9.938 kB / 0.9516 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.467e-05/0.6973, allocations: 174.8 kB / 0.9518 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.6973, allocations: 6.625 kB / 0.9518 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.6973, allocations: 5.844 kB / 0.9518 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.6975, allocations: 90.08 kB / 0.9519 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.6975, allocations: 0 / 0.9519 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.6975, allocations: 5.141 kB / 0.9519 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.6976, allocations: 5.281 kB / 0.9519 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.6977, allocations: 50.25 kB / 0.9519 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004661/0.6982, allocations: 316.9 kB / 0.9522 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.6984, allocations: 100.4 kB / 0.9523 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.806e-05/0.6986, allocations: 48.3 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.6986, allocations: 1.844 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.6989, allocations: 113.5 kB / 0.9525 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 2.174e-06/0.6989, allocations: 0 / 0.9525 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000463/0.6994, allocations: 182.6 kB / 0.9527 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.6994, allocations: 53.5 kB / 0.9527 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.297e-05/0.6995, allocations: 108.7 kB / 0.9528 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.6995, allocations: 34.77 kB / 0.9528 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.208e-05/0.6996, allocations: 86.47 kB / 0.9529 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.282e-05/0.6996, allocations: 31.42 kB / 0.953 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.6997, allocations: 26.38 kB / 0.953 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.187e-05/0.6997, allocations: 324.8 kB / 0.9533 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.377e-05/0.6998, allocations: 32.3 kB / 0.9533 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.109e-05/0.6999, allocations: 42.17 kB / 0.9534 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.7, allocations: 76.06 kB / 0.9534 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.7, allocations: 0 / 0.9534 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001935/0.7002, allocations: 114.3 kB / 0.9535 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.7003, allocations: 4.969 kB / 0.9535 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.7003, allocations: 4 kB / 0.9536 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.7003, allocations: 2.406 kB / 0.9536 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.26e-05/0.7004, allocations: 16.27 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.7004, allocations: 1.438 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.199e-05/0.7005, allocations: 8.984 kB / 0.9536 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.7005, allocations: 6.25 kB / 0.9536 GB, free: 5.297 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.657e-05/0.7006, allocations: 119.1 kB / 0.9537 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.7006, allocations: 7.75 kB / 0.9537 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.7006, allocations: 17.58 kB / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.7006, allocations: 2.406 kB / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.7006, allocations: 0 / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.7007, allocations: 3.938 kB / 0.9537 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.7008, allocations: 202.8 kB / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.7008, allocations: 0 / 0.9539 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.759e-05/0.7009, allocations: 16.17 kB / 0.9539 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.7009, allocations: 0 / 0.9539 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.7009, allocations: 5.812 kB / 0.9539 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.7009, allocations: 1.562 kB / 0.9539 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7009, allocations: 0 / 0.9539 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003711/0.7013, allocations: 221.9 kB / 0.9542 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.409e-05/0.7013, allocations: 82.48 kB / 0.9542 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.7013, allocations: 7.188 kB / 0.9542 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.307e-05/0.7014, allocations: 10.86 kB / 0.9543 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.7015, allocations: 15 kB / 0.9543 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.7015, allocations: 8.062 kB / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.783e-05/0.7015, allocations: 88.98 kB / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7015, allocations: 0 / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000221/0.7018, allocations: 20.06 kB / 0.9544 GB, free: 4.555 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.000123/0.7019, allocations: 106.8 kB / 0.9545 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002223/0.7021, allocations: 92.05 kB / 0.9546 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.7021, allocations: 0 / 0.9546 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.7023, allocations: 73.22 kB / 0.9546 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.7025, allocations: 14.95 kB / 0.9547 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004783/0.703, allocations: 267.7 kB / 0.9549 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.7031, allocations: 0.6909 MB / 0.9556 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.234e-05/0.7032, allocations: 13.03 kB / 0.9556 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.32e-05/0.7032, allocations: 14.25 kB / 0.9556 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of SimCode: time 4.81e-07/0.7032, allocations: 1.125 kB / 0.9556 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of Templates: time 0.003167/0.7064, allocations: 0.9406 MB / 0.9565 GB, free: 2.957 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