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.189/2.189, allocations: 390.5 MB / 398 MB, free: 10.95 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.00105/0.00105, allocations: 176.9 kB / 491.2 MB, free: 1.566 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.574/1.574, allocations: 221.5 MB / 0.7868 GB, free: 13.25 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.001063/0.001063, allocations: 96.53 kB / 0.9269 GB, free: 13.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.051e-05/2.053e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3323, allocations: 143 MB / 1.212 GB, free: 39.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.437, allocations: 150.4 MB / 1.359 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/1.438, allocations: 88.22 kB / 1.359 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003805/1.441, allocations: 1.178 MB / 1.36 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.315e-06/1.441, allocations: 1.594 kB / 1.36 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.654e-06/1.441, allocations: 3.75 kB / 1.36 GB, free: 33.23 MB / 0.8386 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.0004017/1.442, allocations: 360.3 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/1.442, allocations: 7.594 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/1.442, allocations: 5.422 kB / 1.361 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.826e-05/1.442, allocations: 170.7 kB / 1.361 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/1.442, allocations: 5.422 kB / 1.361 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/1.442, allocations: 6.344 kB / 1.361 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.959e-05/1.442, allocations: 25.78 kB / 1.361 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/1.442, allocations: 75.11 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/1.442, allocations: 0 / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/1.442, allocations: 5.578 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/1.442, allocations: 4 kB / 1.361 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/1.443, allocations: 299.2 kB / 1.361 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/1.443, allocations: 92 kB / 1.361 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.345e-05/1.443, allocations: 37.55 kB / 1.362 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/1.443, allocations: 0 / 1.362 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/1.443, allocations: 99.28 kB / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.885e-06/1.443, allocations: 0 / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002373/1.444, allocations: 121.4 kB / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/1.444, allocations: 55.41 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/1.444, allocations: 103.3 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/1.444, allocations: 25.7 kB / 1.362 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.581e-05/1.444, allocations: 95.2 kB / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/1.444, allocations: 25.56 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/1.444, allocations: 3.938 kB / 1.362 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001009/1.444, allocations: 319.9 kB / 1.362 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.144e-05/1.444, allocations: 20.94 kB / 1.362 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.017e-05/1.444, allocations: 41.08 kB / 1.362 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.961e-05/1.444, allocations: 22.3 kB / 1.362 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/1.444, allocations: 0 / 1.362 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001259/1.444, allocations: 92.48 kB / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/1.444, allocations: 3.844 kB / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/1.444, allocations: 3.875 kB / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/1.444, allocations: 0 / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.867e-05/1.444, allocations: 13.69 kB / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/1.444, allocations: 4.641 kB / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.555e-05/1.445, allocations: 9.859 kB / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/1.445, allocations: 8.406 kB / 1.363 GB, free: 31.59 MB / 0.8386 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 () * 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 7.686e-05/1.445, allocations: 110.5 kB / 1.363 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.477e-05/1.445, allocations: 8.438 kB / 1.363 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/1.445, allocations: 8.422 kB / 1.363 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/1.445, allocations: 0 / 1.363 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/1.445, allocations: 4.547 kB / 1.363 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/1.445, allocations: 4.516 kB / 1.363 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/1.445, allocations: 174.5 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.445, allocations: 2 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.432e-05/1.445, allocations: 13.77 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/1.445, allocations: 0 / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/1.445, allocations: 1.828 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/1.445, allocations: 0 / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/1.445, allocations: 4.547 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/1.445, allocations: 191.8 kB / 1.363 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.852e-05/1.445, allocations: 97.42 kB / 1.363 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/1.445, allocations: 5.547 kB / 1.363 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.972e-05/1.445, allocations: 7.438 kB / 1.363 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/1.445, allocations: 17.61 kB / 1.363 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/1.445, allocations: 9.797 kB / 1.363 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.247e-05/1.446, allocations: 82.47 kB / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.446, allocations: 0 / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001842/1.446, allocations: 15.41 kB / 1.363 GB, free: 31.04 MB / 0.8386 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) * 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.000128/1.446, allocations: 113.4 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001408/1.446, allocations: 77.61 kB / 1.363 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/1.446, allocations: 0 / 1.363 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.863e-05/1.446, allocations: 51.62 kB / 1.364 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/1.446, allocations: 10.92 kB / 1.364 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003628/1.447, allocations: 179.1 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/1.447, allocations: 0.6962 MB / 1.364 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.134e-05/1.447, allocations: 10.7 kB / 1.364 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/1.447, allocations: 11.28 kB / 1.364 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.447, allocations: 0 / 1.364 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of Templates: time 0.002964/1.45, allocations: 0.8725 MB / 1.365 GB, free: 30.03 MB / 0.8386 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