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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.381/2.381, allocations: 393.5 MB / 408.4 MB, free: 10.86 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.001306/0.001306, allocations: 183.9 kB / 0.4902 GB, free: 2.09 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.683/1.683, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.0009031/0.0009028, allocations: 101.1 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003428/0.0003429, allocations: 6.969 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2559, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1669/0.4228, allocations: 151.2 MB / 1.377 GB, free: 2.332 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4231, allocations: 83.94 kB / 1.377 GB, free: 2.25 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00368/0.4268, allocations: 1.185 MB / 1.378 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.923e-06/0.4268, allocations: 0 / 1.378 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.4269, allocations: 0 / 1.378 GB, free: 1.062 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.0004971/0.4274, allocations: 368.4 kB / 1.378 GB, free: 0.6562 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.4274, allocations: 8.562 kB / 1.378 GB, free: 0.6484 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.4275, allocations: 11.91 kB / 1.378 GB, free: 0.6367 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.4276, allocations: 167 kB / 1.379 GB, free: 444 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.4276, allocations: 15.92 kB / 1.379 GB, free: 428 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.4277, allocations: 4 kB / 1.379 GB, free: 424 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/0.4279, allocations: 85.64 kB / 1.379 GB, free: 332 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.4279, allocations: 0 / 1.379 GB, free: 332 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.4279, allocations: 4 kB / 1.379 GB, free: 328 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.4279, allocations: 0 / 1.379 GB, free: 328 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.4281, allocations: 43.97 kB / 1.379 GB, free: 284 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006127/0.4287, allocations: 336.6 kB / 1.379 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.429, allocations: 102.5 kB / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.429, allocations: 0 / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002743/0.4293, allocations: 119.4 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.452e-06/0.4293, allocations: 0 / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0003984/0.4297, allocations: 173.5 kB / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4298, allocations: 59.36 kB / 1.38 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.672e-05/0.4298, allocations: 101 kB / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.4299, allocations: 29.7 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.649e-05/0.4299, allocations: 96.36 kB / 1.38 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.653e-05/0.43, allocations: 27.77 kB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.43, allocations: 0 / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.4301, allocations: 318.8 kB / 1.38 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.503e-05/0.4302, allocations: 31.98 kB / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.189e-05/0.4303, allocations: 49.64 kB / 1.38 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.511e-05/0.4304, allocations: 32.42 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4304, allocations: 0 / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002416/0.4307, allocations: 113.5 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.4307, allocations: 4 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.4307, allocations: 4 kB / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.4307, allocations: 7.969 kB / 1.38 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.397e-05/0.4308, allocations: 15.92 kB / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.4308, allocations: 8 kB / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.553e-05/0.4309, allocations: 23.78 kB / 1.38 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.4309, allocations: 4 kB / 1.38 GB, free: 14.52 MB / 0.8855 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.0001016/0.4311, allocations: 115.6 kB / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.4311, allocations: 4 kB / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.4311, allocations: 16.36 kB / 1.38 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.4311, allocations: 4 kB / 1.38 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4311, allocations: 4 kB / 1.38 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.4311, allocations: 0 / 1.38 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.4313, allocations: 201.4 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.4313, allocations: 0 / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.461e-05/0.4314, allocations: 11.98 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.4314, allocations: 4 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.4315, allocations: 4 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4315, allocations: 3.938 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4315, allocations: 0 / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.4319, allocations: 221 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.4319, allocations: 81.02 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.432, allocations: 8.031 kB / 1.381 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.569e-05/0.4321, allocations: 7.984 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.4321, allocations: 19.91 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.4321, allocations: 8.062 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.782e-05/0.4322, allocations: 95.56 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.833e-06/0.4322, allocations: 0 / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002101/0.4324, allocations: 27.94 kB / 1.381 GB, free: 13.6 MB / 0.8855 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.0001438/0.4326, allocations: 104 kB / 1.381 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002292/0.4328, allocations: 87.91 kB / 1.381 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4328, allocations: 4 kB / 1.381 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.433, allocations: 71.95 kB / 1.381 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000155/0.4331, allocations: 15.94 kB / 1.381 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004982/0.4336, allocations: 298.8 kB / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.4339, allocations: 0.6887 MB / 1.382 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.333e-05/0.434, allocations: 12.66 kB / 1.382 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.434, allocations: 15.44 kB / 1.382 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.434, allocations: 0 / 1.382 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of Templates: time 0.003179/0.4372, allocations: 0.9015 MB / 1.383 GB, free: 11.36 MB / 0.8855 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","../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches