Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00791/0.00791, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001644/0.001644, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.629/2.629, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 63.91 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3676, allocations: 151.6 MB / 1.167 GB, free: 6.84 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003513/0.3712, allocations: 1.572 MB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009317/0.3722, allocations: 458.9 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.289e-05/0.3723, allocations: 0 / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.188e-05/0.3724, allocations: 3.938 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.647e-05/0.3725, allocations: 3.938 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.3728, allocations: 39.89 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.373, allocations: 67.84 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.3731, allocations: 11.98 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.3732, allocations: 31.92 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.3734, allocations: 39.77 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.3734, allocations: 4 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.035e-05/0.3734, allocations: 8 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.6e-05/0.3735, allocations: 19.98 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.3735, allocations: 27.86 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001678/0.3737, allocations: 67.7 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3737, allocations: 0 / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of FrontEnd: time 4.569e-06/0.3737, allocations: 4 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.3737, allocations: 0 / 1.169 GB, free: 4.473 MB / 0.92 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.0007762/0.3745, allocations: 371.2 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/0.3746, allocations: 8.031 kB / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.844e-05/0.3747, allocations: 16.89 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.3748, allocations: 168.3 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.3749, allocations: 4.375 kB / 1.169 GB, free: 3.832 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.3749, allocations: 16.3 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.3751, allocations: 85.89 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.3752, allocations: 0 / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.3752, allocations: 8 kB / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3752, allocations: 0 / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3753, allocations: 39.97 kB / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006256/0.376, allocations: 324.7 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.3763, allocations: 102.5 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.261e-05/0.3764, allocations: 40.84 kB / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.3764, allocations: 0 / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002742/0.3767, allocations: 119.4 kB / 1.17 GB, free: 3.031 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 3.156e-06/0.3767, allocations: 3.938 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004057/0.3771, allocations: 165.6 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.3772, allocations: 55.41 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.785e-05/0.3773, allocations: 117.8 kB / 1.17 GB, free: 2.668 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.3773, allocations: 25.7 kB / 1.171 GB, free: 2.637 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.161e-05/0.3774, allocations: 88.38 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.3774, allocations: 35.88 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.319e-05/0.3775, allocations: 29.7 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3776, allocations: 322.8 kB / 1.171 GB, free: 2.152 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.9e-05/0.3777, allocations: 27.98 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.166e-05/0.3778, allocations: 57.56 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.3779, allocations: 65.58 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3779, allocations: 0 / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002282/0.3782, allocations: 125.5 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3782, allocations: 4 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3782, allocations: 0 / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3782, allocations: 0 / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.414e-05/0.3783, allocations: 12 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3783, allocations: 4 kB / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.104e-05/0.3784, allocations: 11.98 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.3784, allocations: 4 kB / 1.171 GB, free: 1.832 MB / 0.92 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.000111/0.3786, allocations: 127.6 kB / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.3786, allocations: 11.94 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/0.3786, allocations: 8.375 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3786, allocations: 4 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3787, allocations: 7.875 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.3787, allocations: 4 kB / 1.171 GB, free: 1.664 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.3788, allocations: 197.5 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3789, allocations: 0 / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.587e-05/0.3789, allocations: 11.98 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3789, allocations: 0 / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.379, allocations: 4 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.379, allocations: 3.984 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.379, allocations: 0 / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.3794, allocations: 221.4 kB / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.3794, allocations: 89.03 kB / 1.172 GB, free: 1.062 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.3795, allocations: 7.984 kB / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.473e-05/0.3795, allocations: 0 / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.072e-05/0.3796, allocations: 19.97 kB / 1.172 GB, free: 1.035 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.3796, allocations: 4 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.723e-05/0.3797, allocations: 87.27 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3797, allocations: 4 kB / 1.172 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002061/0.3799, allocations: 20.06 kB / 1.172 GB, free: 0.9219 MB / 0.92 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.0001601/0.3801, allocations: 103.2 kB / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002887/0.3804, allocations: 99.88 kB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3804, allocations: 0 / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.3805, allocations: 67.91 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3807, allocations: 11.98 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005606/0.3813, allocations: 269.1 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.3816, allocations: 0.6963 MB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.995e-05/0.3817, allocations: 8.656 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/0.3817, allocations: 11.44 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.3817, allocations: 0 / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of Templates: time 0.003855/0.3856, allocations: 1.078 MB / 1.174 GB, free: 14.53 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches