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.001761/0.001761, allocations: 103.7 kB / 16.41 MB, free: 6.469 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.002029/0.002029, allocations: 187 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.337/2.337, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.268/4.268, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 67.88 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.269/1.271, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.004164/1.275, allocations: 1.574 MB / 1.169 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001111/1.277, allocations: 447 kB / 1.169 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.436e-05/1.277, allocations: 4 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.208e-05/1.277, allocations: 7.922 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000101/1.277, allocations: 3.938 kB / 1.169 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/1.277, allocations: 27.91 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001647/1.277, allocations: 79.83 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/1.278, allocations: 7.984 kB / 1.169 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/1.278, allocations: 31.92 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/1.278, allocations: 35.83 kB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/1.278, allocations: 8 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.12e-05/1.278, allocations: 8 kB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.283e-05/1.278, allocations: 7.984 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.323e-05/1.278, allocations: 31.86 kB / 1.17 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001955/1.278, allocations: 76.2 kB / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/1.278, allocations: 0 / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.124e-06/1.278, allocations: 0 / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.835e-06/1.278, allocations: 0 / 1.17 GB, free: 1.5 MB / 0.8887 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.0007498/1.279, allocations: 375.3 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/1.279, allocations: 8.922 kB / 1.17 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.529e-05/1.279, allocations: 12.88 kB / 1.17 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/1.279, allocations: 168.3 kB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/1.279, allocations: 8.375 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/1.279, allocations: 4.375 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/1.28, allocations: 93.88 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/1.28, allocations: 0 / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/1.28, allocations: 0 / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/1.28, allocations: 3.984 kB / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/1.28, allocations: 43.97 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007254/1.281, allocations: 324.7 kB / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/1.281, allocations: 102.6 kB / 1.171 GB, free: 236 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/1.281, allocations: 52.78 kB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/1.281, allocations: 3.938 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/1.282, allocations: 115.3 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 2.295e-06/1.282, allocations: 0 / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0005691/1.282, allocations: 169.8 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/1.282, allocations: 51.41 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.703e-05/1.282, allocations: 121.7 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/1.282, allocations: 29.7 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/1.282, allocations: 92.38 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.51e-05/1.282, allocations: 31.7 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-05/1.283, allocations: 29.7 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001392/1.283, allocations: 318.8 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/1.283, allocations: 27.98 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/1.283, allocations: 55.06 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/1.283, allocations: 69.64 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/1.283, allocations: 0 / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003184/1.284, allocations: 105.6 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/1.284, allocations: 22.52 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.284, allocations: 0 / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/1.284, allocations: 0 / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-05/1.284, allocations: 8 kB / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/1.284, allocations: 4 kB / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/1.284, allocations: 19.92 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/1.284, allocations: 8 kB / 1.172 GB, free: 14.84 MB / 0.9044 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.0001231/1.284, allocations: 117.8 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/1.284, allocations: 15.88 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.613e-05/1.284, allocations: 12.38 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/1.284, allocations: 4 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/1.284, allocations: 0 / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/1.284, allocations: 0 / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/1.284, allocations: 193.6 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.284, allocations: 4 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/1.284, allocations: 11.98 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/1.284, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/1.285, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/1.285, allocations: 4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.285, allocations: 3.984 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005312/1.285, allocations: 221.3 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/1.285, allocations: 89.16 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.49e-05/1.285, allocations: 7.984 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.243e-05/1.285, allocations: 4 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.608e-05/1.285, allocations: 19.97 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/1.285, allocations: 7.938 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.665e-05/1.285, allocations: 87.27 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.71e-07/1.285, allocations: 0 / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003097/1.286, allocations: 20 kB / 1.173 GB, free: 13.94 MB / 0.9044 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.0001635/1.286, allocations: 107.3 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003404/1.286, allocations: 99.77 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/1.286, allocations: 0 / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/1.286, allocations: 63.97 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/1.287, allocations: 19.86 kB / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007396/1.288, allocations: 282.8 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/1.288, allocations: 0.6885 MB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.547e-05/1.288, allocations: 15.44 kB / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of SimCode: time 9.51e-07/1.288, allocations: 0 / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of Templates: time 0.003826/1.292, allocations: 1.137 MB / 1.175 GB, free: 11.48 MB / 0.9044 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/jenkins1/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