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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.164/2.164, allocations: 390.5 MB / 398 MB, free: 10.96 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.001068/0.001068, allocations: 171.9 kB / 491.2 MB, free: 1.59 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.526/1.526, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.000979/0.000979, allocations: 87.55 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.611e-05/1.606e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3105, allocations: 143 MB / 1.212 GB, free: 39.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.325, allocations: 150.4 MB / 1.359 GB, free: 17.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/1.325, allocations: 87.7 kB / 1.359 GB, free: 17.22 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00411/1.33, allocations: 1.167 MB / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.884e-06/1.33, allocations: 0 / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.036e-05/1.33, allocations: 7.844 kB / 1.361 GB, free: 32.86 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.0004444/1.33, allocations: 365 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/1.33, allocations: 7.688 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/1.33, allocations: 5.562 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/1.33, allocations: 174.6 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/1.33, allocations: 5.609 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/1.33, allocations: 3.844 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00011/1.33, allocations: 31.61 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/1.331, allocations: 77.58 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/1.331, allocations: 0.8438 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/1.331, allocations: 4.422 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/1.331, allocations: 0 / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005504/1.331, allocations: 296.1 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/1.331, allocations: 90.92 kB / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.638e-05/1.331, allocations: 33.77 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/1.332, allocations: 3.875 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/1.332, allocations: 105.8 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 3.086e-06/1.332, allocations: 0 / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002969/1.332, allocations: 124.8 kB / 1.362 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/1.332, allocations: 51.97 kB / 1.362 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/1.332, allocations: 106.9 kB / 1.362 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/1.332, allocations: 30.42 kB / 1.362 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.014e-05/1.332, allocations: 89.28 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.143e-05/1.332, allocations: 24.75 kB / 1.362 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-06/1.332, allocations: 0 / 1.362 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001199/1.333, allocations: 324.8 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/1.333, allocations: 23.02 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.104e-05/1.333, allocations: 37.84 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.148e-05/1.333, allocations: 25.5 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/1.333, allocations: 0 / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001636/1.333, allocations: 92.19 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/1.333, allocations: 3.844 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/1.333, allocations: 0 / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/1.333, allocations: 7.844 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.081e-05/1.333, allocations: 14.2 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/1.333, allocations: 4.578 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.961e-05/1.333, allocations: 6.375 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/1.333, allocations: 8.078 kB / 1.363 GB, free: 31.2 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 9.096e-05/1.333, allocations: 105.5 kB / 1.363 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000165/1.333, allocations: 118.3 kB / 1.363 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/1.333, allocations: 12.62 kB / 1.363 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.92e-05/1.333, allocations: 15.75 kB / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/1.334, allocations: 0 / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.334, allocations: 3.953 kB / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/1.334, allocations: 0 / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/1.334, allocations: 167.3 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/1.334, allocations: 3.938 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.627e-05/1.334, allocations: 10.5 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/1.334, allocations: 0 / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/1.334, allocations: 5.031 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/1.334, allocations: 5.922 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.334, allocations: 0 / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/1.334, allocations: 187 kB / 1.363 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-05/1.334, allocations: 84.67 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/1.334, allocations: 5.484 kB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-05/1.334, allocations: 5.719 kB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/1.334, allocations: 22.3 kB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/1.334, allocations: 8.906 kB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.65e-05/1.334, allocations: 96.02 kB / 1.363 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.334, allocations: 0 / 1.363 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002067/1.335, allocations: 23.09 kB / 1.363 GB, free: 30.61 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.0006099/1.335, allocations: 0.7172 MB / 1.364 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001505/1.335, allocations: 82.86 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/1.335, allocations: 0 / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.341e-05/1.335, allocations: 54.86 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001745/1.336, allocations: 11.81 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005425/1.336, allocations: 207.3 kB / 1.365 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/1.337, allocations: 0.6922 MB / 1.365 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.824e-05/1.337, allocations: 6.062 kB / 1.365 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.406e-05/1.337, allocations: 28.53 kB / 1.365 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.337, allocations: 4 kB / 1.365 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/1.36, allocations: 1.569 MB / 1.367 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/1.36, allocations: 151.3 kB / 1.367 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.643/3.003, allocations: 1.5 kB / 1.367 GB, free: 28.86 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat does not exist to compare? outputFormat=mat