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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.576/2.576, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 182.8 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.669/1.669, allocations: 223.2 MB / 0.7948 GB, free: 17.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 97.56 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003656, allocations: 13.91 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2973, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/0.4918, allocations: 150.4 MB / 1.37 GB, free: 11.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003428/0.4922, allocations: 83.95 kB / 1.37 GB, free: 11.62 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003922/0.4962, allocations: 1.178 MB / 1.371 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4962, allocations: 0 / 1.371 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.4962, allocations: 0 / 1.371 GB, free: 10.44 MB / 0.8698 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.0005111/0.4967, allocations: 367.2 kB / 1.371 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.4968, allocations: 8.031 kB / 1.371 GB, free: 10.02 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.685e-05/0.4968, allocations: 11.91 kB / 1.371 GB, free: 10.01 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.497, allocations: 171 kB / 1.372 GB, free: 9.805 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.497, allocations: 11.98 kB / 1.372 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.4971, allocations: 7.938 kB / 1.372 GB, free: 9.785 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.4973, allocations: 81.58 kB / 1.372 GB, free: 9.699 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.4973, allocations: 8 kB / 1.372 GB, free: 9.691 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.4973, allocations: 4 kB / 1.372 GB, free: 9.688 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.4973, allocations: 0 / 1.372 GB, free: 9.688 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.4975, allocations: 43.97 kB / 1.372 GB, free: 9.645 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.4981, allocations: 328.7 kB / 1.372 GB, free: 9.273 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.4984, allocations: 102.6 kB / 1.372 GB, free: 9.164 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.4985, allocations: 4 kB / 1.372 GB, free: 9.16 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002804/0.4988, allocations: 115.3 kB / 1.372 GB, free: 9.035 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.4988, allocations: 0 / 1.372 GB, free: 9.035 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0004258/0.4992, allocations: 177.5 kB / 1.372 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.4993, allocations: 59.36 kB / 1.372 GB, free: 8.785 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.417e-05/0.4994, allocations: 105 kB / 1.373 GB, free: 8.676 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4994, allocations: 33.7 kB / 1.373 GB, free: 8.637 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/0.4995, allocations: 92.36 kB / 1.373 GB, free: 8.539 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.837e-05/0.4995, allocations: 31.7 kB / 1.373 GB, free: 8.508 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-06/0.4995, allocations: 0 / 1.373 GB, free: 8.508 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.4997, allocations: 318.8 kB / 1.373 GB, free: 8.188 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.176e-05/0.4998, allocations: 31.98 kB / 1.373 GB, free: 8.156 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.888e-05/0.4999, allocations: 53.64 kB / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.217e-05/0.4999, allocations: 27.98 kB / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5, allocations: 0 / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002551/0.5002, allocations: 113.5 kB / 1.373 GB, free: 7.953 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.5002, allocations: 4 kB / 1.373 GB, free: 7.949 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.5003, allocations: 0 / 1.373 GB, free: 7.949 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.5003, allocations: 7.984 kB / 1.373 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-05/0.5004, allocations: 12 kB / 1.373 GB, free: 7.93 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.5004, allocations: 7.938 kB / 1.373 GB, free: 7.922 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.992e-05/0.5005, allocations: 15.94 kB / 1.373 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.5005, allocations: 4.047 kB / 1.373 GB, free: 7.902 MB / 0.8698 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.soc.charged,soc.charged,$PRE.soc.discharged,soc.discharged,soc.suspend) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.5006, allocations: 118.6 kB / 1.373 GB, free: 7.777 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.5006, allocations: 11.84 kB / 1.373 GB, free: 7.766 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.308e-05/0.5007, allocations: 16.36 kB / 1.373 GB, free: 7.75 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5007, allocations: 8 kB / 1.373 GB, free: 7.742 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5007, allocations: 0 / 1.373 GB, free: 7.742 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.5007, allocations: 3.938 kB / 1.373 GB, free: 7.738 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.5009, allocations: 197.6 kB / 1.374 GB, free: 7.496 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.5009, allocations: 0 / 1.374 GB, free: 7.496 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/0.501, allocations: 11.98 kB / 1.374 GB, free: 7.484 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.501, allocations: 0 / 1.374 GB, free: 7.484 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.501, allocations: 4 kB / 1.374 GB, free: 7.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.501, allocations: 3.938 kB / 1.374 GB, free: 7.477 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.501, allocations: 0 / 1.374 GB, free: 7.477 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.5014, allocations: 233.4 kB / 1.374 GB, free: 7.23 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.5015, allocations: 81.02 kB / 1.374 GB, free: 7.133 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.5015, allocations: 8 kB / 1.374 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.193e-05/0.5016, allocations: 11.98 kB / 1.374 GB, free: 7.113 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.5017, allocations: 20.03 kB / 1.374 GB, free: 7.094 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.5017, allocations: 4 kB / 1.374 GB, free: 7.09 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.058e-05/0.5018, allocations: 91.27 kB / 1.374 GB, free: 7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5018, allocations: 0 / 1.374 GB, free: 7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002093/0.502, allocations: 23.94 kB / 1.374 GB, free: 6.977 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001801/0.5022, allocations: 115 kB / 1.374 GB, free: 6.855 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002328/0.5024, allocations: 87.97 kB / 1.374 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5024, allocations: 0 / 1.374 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.5026, allocations: 71.91 kB / 1.374 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.5027, allocations: 19.88 kB / 1.374 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00059/0.5033, allocations: 290.9 kB / 1.375 GB, free: 6.367 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.5036, allocations: 0.6965 MB / 1.375 GB, free: 5.645 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.443e-05/0.5037, allocations: 8.656 kB / 1.375 GB, free: 5.633 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.19e-05/0.5038, allocations: 15.44 kB / 1.375 GB, free: 5.621 MB / 0.8698 GB Notification: Performance of SimCode: time 8.31e-07/0.5038, allocations: 0 / 1.375 GB, free: 5.621 MB / 0.8698 GB Notification: Performance of Templates: time 0.003402/0.5072, allocations: 0.8956 MB / 1.376 GB, free: 4.73 MB / 0.8698 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","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches