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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.198/2.198, allocations: 387.1 MB / 399.7 MB, free: 9.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.001057/0.001057, allocations: 184 kB / 492.3 MB, free: 0.6211 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.498/1.498, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0009643/0.0009642, allocations: 97.94 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.246e-05/4.248e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3123, allocations: 142.3 MB / 1.213 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.364, allocations: 150.3 MB / 1.359 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/1.365, allocations: 85.42 kB / 1.359 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00384/1.369, allocations: 1.173 MB / 1.361 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.353e-06/1.369, allocations: 3.875 kB / 1.361 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.326e-06/1.369, allocations: 4 kB / 1.361 GB, free: 34.46 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.000384/1.369, allocations: 358 kB / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.369, allocations: 7.812 kB / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/1.369, allocations: 40.09 kB / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/1.369, allocations: 3.969 kB / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.779e-05/1.369, allocations: 177.4 kB / 1.361 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/1.369, allocations: 6.562 kB / 1.361 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/1.369, allocations: 11.69 kB / 1.361 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/1.369, allocations: 73.05 kB / 1.361 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/1.369, allocations: 0 / 1.361 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/1.37, allocations: 6.75 kB / 1.361 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/1.37, allocations: 0 / 1.361 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.682e-05/1.37, allocations: 36.44 kB / 1.361 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/1.37, allocations: 328.2 kB / 1.362 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/1.37, allocations: 86.72 kB / 1.362 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.816e-05/1.37, allocations: 43.7 kB / 1.362 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/1.37, allocations: 3.984 kB / 1.362 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/1.371, allocations: 108.1 kB / 1.362 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/1.371, allocations: 3.938 kB / 1.362 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002301/1.371, allocations: 127.7 kB / 1.362 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/1.371, allocations: 56.86 kB / 1.362 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.009e-05/1.371, allocations: 101.8 kB / 1.362 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/1.371, allocations: 29.45 kB / 1.362 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/1.371, allocations: 96.42 kB / 1.362 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/1.371, allocations: 31.78 kB / 1.362 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/1.371, allocations: 3.938 kB / 1.362 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.838e-05/1.371, allocations: 317.7 kB / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.305e-05/1.371, allocations: 24.56 kB / 1.363 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-05/1.371, allocations: 43.69 kB / 1.363 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.283e-05/1.371, allocations: 22.83 kB / 1.363 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.371, allocations: 0 / 1.363 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001382/1.372, allocations: 100.6 kB / 1.363 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/1.372, allocations: 9.156 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/1.372, allocations: 3.938 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/1.372, allocations: 1.828 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.499e-05/1.372, allocations: 13.12 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/1.372, allocations: 0 / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.493e-05/1.372, allocations: 22.33 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/1.372, allocations: 3.781 kB / 1.363 GB, free: 32.74 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 6.835e-05/1.372, allocations: 107.1 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/1.372, allocations: 15.66 kB / 1.363 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.351e-05/1.372, allocations: 16.7 kB / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/1.372, allocations: 0 / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/1.372, allocations: 0 / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/1.372, allocations: 3.844 kB / 1.363 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/1.372, allocations: 196.5 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.372, allocations: 0 / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-05/1.372, allocations: 12.23 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.372, allocations: 0 / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/1.372, allocations: 5.844 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/1.372, allocations: 4 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.372, allocations: 4 kB / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/1.372, allocations: 199.3 kB / 1.363 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/1.372, allocations: 92.27 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/1.373, allocations: 8.594 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-05/1.373, allocations: 6.703 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/1.373, allocations: 16.11 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/1.373, allocations: 11.94 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.678e-05/1.373, allocations: 87.62 kB / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.373, allocations: 0 / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001755/1.373, allocations: 19.44 kB / 1.364 GB, free: 32.16 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.0004948/1.373, allocations: 0.7471 MB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001457/1.374, allocations: 77.06 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.374, allocations: 0 / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.826e-05/1.374, allocations: 61.25 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/1.374, allocations: 14.03 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004861/1.374, allocations: 222.7 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/1.375, allocations: 0.6945 MB / 1.365 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.025e-05/1.375, allocations: 5.953 kB / 1.365 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.545e-05/1.375, allocations: 24.81 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of SimCode: time 3.11e-07/1.375, allocations: 4 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01237/1.387, allocations: 1.881 MB / 1.367 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/1.387, allocations: 175.7 kB / 1.367 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/3.082, allocations: 3.938 kB / 1.367 GB, free: 30.25 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat does not exist to compare? outputFormat=mat