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.135/2.135, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001215/0.001215, allocations: 172.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.0008849/0.0008849, allocations: 99.75 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.702e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3049, allocations: 143 MB / 1.219 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9934/1.298, allocations: 151.1 MB / 1.366 GB, free: 2.895 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/1.299, allocations: 86.75 kB / 1.367 GB, free: 2.844 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003547/1.302, allocations: 1.175 MB / 1.368 GB, free: 1.812 MB / 0.823 GB Notification: Performance of FrontEnd: time 4.478e-06/1.302, allocations: 4 kB / 1.368 GB, free: 1.809 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.745e-06/1.302, allocations: 0 / 1.368 GB, free: 1.809 MB / 0.823 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.0004574/1.303, allocations: 358.7 kB / 1.368 GB, free: 1.418 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/1.303, allocations: 12.02 kB / 1.368 GB, free: 1.406 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.388e-05/1.303, allocations: 34.44 kB / 1.368 GB, free: 1.367 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.098e-05/1.303, allocations: 11.95 kB / 1.368 GB, free: 1.355 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/1.303, allocations: 171 kB / 1.368 GB, free: 1.148 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/1.303, allocations: 11.92 kB / 1.368 GB, free: 1.137 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/1.303, allocations: 7.75 kB / 1.368 GB, free: 1.133 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/1.303, allocations: 75.59 kB / 1.368 GB, free: 1.066 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/1.303, allocations: 0 / 1.368 GB, free: 1.066 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/1.303, allocations: 0 / 1.368 GB, free: 1.066 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/1.303, allocations: 4 kB / 1.368 GB, free: 1.062 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.22e-05/1.303, allocations: 30.38 kB / 1.368 GB, free: 1.043 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/1.304, allocations: 327.7 kB / 1.369 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/1.304, allocations: 93.94 kB / 1.369 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.371e-05/1.304, allocations: 37.86 kB / 1.369 GB, free: 0.6016 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/1.304, allocations: 4 kB / 1.369 GB, free: 0.5977 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000193/1.305, allocations: 113.7 kB / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/1.305, allocations: 0 / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.0002554/1.305, allocations: 132.2 kB / 1.369 GB, free: 388 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/1.305, allocations: 51.41 kB / 1.369 GB, free: 324 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/1.305, allocations: 103.2 kB / 1.369 GB, free: 220 kB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/1.305, allocations: 36.89 kB / 1.369 GB, free: 180 kB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/1.305, allocations: 87.5 kB / 1.369 GB, free: 88 kB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/1.305, allocations: 31 kB / 1.369 GB, free: 60 kB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-06/1.305, allocations: 3.875 kB / 1.369 GB, free: 60 kB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001248/1.305, allocations: 314.8 kB / 1.37 GB, free: 15.74 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.913e-05/1.305, allocations: 29.55 kB / 1.37 GB, free: 15.72 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.426e-05/1.305, allocations: 36.09 kB / 1.37 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.985e-05/1.305, allocations: 28.88 kB / 1.37 GB, free: 15.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/1.305, allocations: 7.938 kB / 1.37 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001471/1.305, allocations: 99.34 kB / 1.37 GB, free: 15.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/1.306, allocations: 8 kB / 1.37 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/1.306, allocations: 0 / 1.37 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/1.306, allocations: 0 / 1.37 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.131e-05/1.306, allocations: 19.92 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/1.306, allocations: 3.953 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.327e-05/1.306, allocations: 11.86 kB / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/1.306, allocations: 4 kB / 1.37 GB, free: 15.54 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.495e-05/1.306, allocations: 112.2 kB / 1.37 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/1.306, allocations: 7.906 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/1.306, allocations: 19.08 kB / 1.37 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.306, allocations: 4 kB / 1.37 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/1.306, allocations: 0 / 1.37 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.306, allocations: 3.953 kB / 1.37 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/1.306, allocations: 191.6 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.306, allocations: 0 / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.586e-05/1.306, allocations: 19.92 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/1.306, allocations: 0 / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/1.306, allocations: 7.625 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/1.306, allocations: 0.9375 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/1.306, allocations: 0 / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/1.306, allocations: 200.7 kB / 1.37 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.286e-05/1.307, allocations: 88.98 kB / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/1.307, allocations: 7.375 kB / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.258e-05/1.307, allocations: 12.05 kB / 1.371 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/1.307, allocations: 15.22 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/1.307, allocations: 4 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.357e-05/1.307, allocations: 90.66 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.307, allocations: 0 / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001915/1.307, allocations: 19.5 kB / 1.371 GB, free: 14.74 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.0005375/1.308, allocations: 0.7457 MB / 1.371 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001565/1.308, allocations: 82.5 kB / 1.371 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.308, allocations: 0 / 1.371 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.485e-05/1.308, allocations: 58.25 kB / 1.372 GB, free: 13.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001545/1.308, allocations: 16.36 kB / 1.372 GB, free: 13.9 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004906/1.308, allocations: 221.5 kB / 1.372 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/1.309, allocations: 0.6887 MB / 1.372 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.897e-05/1.309, allocations: 12.66 kB / 1.372 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5e-05/1.309, allocations: 28.12 kB / 1.372 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.309, allocations: 0 / 1.372 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01236/1.321, allocations: 1.892 MB / 1.374 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/1.321, allocations: 169.7 kB / 1.374 GB, free: 10.97 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.584/2.906, allocations: 3.5 kB / 1.374 GB, free: 10.97 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