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) 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 12.0.0-master/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_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.001641/0.001642, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002314/0.002314, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.486/1.486, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.953/2.953, allocations: 472.6 MB / 0.7448 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 67.5 kB / 0.9116 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3607, allocations: 159.9 MB / 1.068 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00312/0.3639, allocations: 1.635 MB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.3647, allocations: 442.9 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.8e-05/0.3647, allocations: 4 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.269e-05/0.3648, allocations: 4 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.3649, allocations: 3.938 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.3651, allocations: 31.89 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.3652, allocations: 75.78 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3653, allocations: 7.984 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.3655, allocations: 35.91 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.395e-05/0.3655, allocations: 27.91 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.3656, allocations: 8 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.603e-05/0.3656, allocations: 8 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.3656, allocations: 15.92 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.515e-05/0.3657, allocations: 39.84 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.3658, allocations: 56.12 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3658, allocations: 3.938 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3658, allocations: 0 / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.3659, allocations: 0 / 1.07 GB, free: 8.375 MB / 0.8262 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.0006347/0.3665, allocations: 379.2 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3665, allocations: 8.031 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.3666, allocations: 4.938 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.3667, allocations: 176.2 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.3668, allocations: 8.375 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.3668, allocations: 12.3 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.3671, allocations: 85.95 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3671, allocations: 3.984 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.3671, allocations: 4 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.3671, allocations: 4 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.3672, allocations: 43.91 kB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000609/0.3679, allocations: 320.6 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.3682, allocations: 106.5 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.3683, allocations: 40.84 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.3683, allocations: 0 / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.3687, allocations: 115.4 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.804e-06/0.3687, allocations: 4 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004774/0.3692, allocations: 173.8 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.3693, allocations: 51.41 kB / 1.072 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.3694, allocations: 109.8 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.3694, allocations: 29.7 kB / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.926e-05/0.3695, allocations: 92.36 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.3695, allocations: 27.77 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/0.3696, allocations: 29.7 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3697, allocations: 330.7 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.295e-05/0.3698, allocations: 35.97 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.582e-05/0.3699, allocations: 45.2 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.3701, allocations: 65.75 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3701, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002065/0.3703, allocations: 121.4 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3703, allocations: 8 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3703, allocations: 0 / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.3704, allocations: 0 / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.58e-05/0.3704, allocations: 15.92 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3705, allocations: 7.938 kB / 1.072 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.842e-05/0.3705, allocations: 11.94 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.3706, allocations: 4 kB / 1.072 GB, free: 5.719 MB / 0.8262 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 9.36e-05/0.3707, allocations: 127.3 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.652e-05/0.3707, allocations: 7.906 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.3707, allocations: 12.38 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3707, allocations: 4 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3707, allocations: 0 / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3707, allocations: 0 / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.3709, allocations: 193.5 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3709, allocations: 0 / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.829e-05/0.371, allocations: 12 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.371, allocations: 0 / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.371, allocations: 11.98 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.371, allocations: 7.938 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3711, allocations: 0 / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003821/0.3714, allocations: 212.8 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.3715, allocations: 85.05 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.3715, allocations: 7.984 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.217e-05/0.3716, allocations: 8.031 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.254e-05/0.3717, allocations: 24.03 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.3717, allocations: 4 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.158e-05/0.3718, allocations: 87.27 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3718, allocations: 0 / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001981/0.372, allocations: 16 kB / 1.073 GB, free: 4.82 MB / 0.8262 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.0001529/0.3721, allocations: 111.2 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000255/0.3724, allocations: 99.77 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3724, allocations: 4 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3725, allocations: 67.97 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.3728, allocations: 11.98 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005329/0.3733, allocations: 273.8 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3737, allocations: 0.6885 MB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.612e-05/0.3737, allocations: 12.75 kB / 1.074 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.3738, allocations: 15.44 kB / 1.074 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3738, allocations: 0 / 1.074 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of Templates: time 0.003602/0.3774, allocations: 0.9875 MB / 1.075 GB, free: 2.504 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) 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) Reference file matches