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.389/2.389, allocations: 393.5 MB / 408.4 MB, free: 11 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.001044/0.001044, allocations: 182 kB / 0.4901 GB, free: 2.246 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.712/1.712, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.0008915/0.0008914, allocations: 100.3 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.000389, allocations: 10.67 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2889, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1851/0.4741, allocations: 151.2 MB / 1.377 GB, free: 2.293 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.4744, allocations: 83.94 kB / 1.377 GB, free: 2.211 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003822/0.4783, allocations: 1.177 MB / 1.378 GB, free: 1.031 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4783, allocations: 7.938 kB / 1.378 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.4783, allocations: 0 / 1.378 GB, free: 1.023 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.0005225/0.4788, allocations: 364.1 kB / 1.379 GB, free: 0.6211 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.4789, allocations: 12.56 kB / 1.379 GB, free: 0.6094 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.479, allocations: 42.48 kB / 1.379 GB, free: 0.5586 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.479, allocations: 11.86 kB / 1.379 GB, free: 0.5469 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.4791, allocations: 167 kB / 1.379 GB, free: 352 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.4792, allocations: 12 kB / 1.379 GB, free: 340 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.4792, allocations: 7.984 kB / 1.379 GB, free: 332 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.4794, allocations: 85.58 kB / 1.379 GB, free: 240 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.4795, allocations: 0 / 1.379 GB, free: 240 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.4795, allocations: 4 kB / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4795, allocations: 7.938 kB / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.4796, allocations: 43.95 kB / 1.379 GB, free: 184 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006578/0.4803, allocations: 332.9 kB / 1.379 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.4806, allocations: 102.6 kB / 1.379 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.4806, allocations: 4 kB / 1.379 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.4809, allocations: 115.5 kB / 1.379 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 2.013e-06/0.4809, allocations: 0 / 1.379 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0004017/0.4813, allocations: 181.5 kB / 1.38 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.4814, allocations: 59.3 kB / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.707e-05/0.4815, allocations: 101 kB / 1.38 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.4815, allocations: 33.7 kB / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.4816, allocations: 84.38 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.4816, allocations: 27.61 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-06/0.4816, allocations: 4 kB / 1.38 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.4817, allocations: 320.6 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.97e-05/0.4818, allocations: 31.98 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.642e-05/0.4819, allocations: 49.7 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.844e-05/0.482, allocations: 31.92 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.482, allocations: 0 / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002132/0.4822, allocations: 117.5 kB / 1.38 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4822, allocations: 6.031 kB / 1.38 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4822, allocations: 0 / 1.38 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.4823, allocations: 0 / 1.38 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.63e-05/0.4823, allocations: 15.98 kB / 1.38 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.4824, allocations: 0 / 1.38 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.144e-05/0.4825, allocations: 23.88 kB / 1.38 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.4825, allocations: 0 / 1.38 GB, free: 14.44 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 9.218e-05/0.4826, allocations: 125.8 kB / 1.381 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.4826, allocations: 7.906 kB / 1.381 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.449e-05/0.4826, allocations: 12.38 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.4826, allocations: 3.984 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4827, allocations: 0 / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4827, allocations: 4 kB / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.4828, allocations: 197.6 kB / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4828, allocations: 3.938 kB / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.85e-05/0.4829, allocations: 11.98 kB / 1.381 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4829, allocations: 7.938 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.483, allocations: 0 / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.483, allocations: 4 kB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.483, allocations: 0 / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003802/0.4834, allocations: 225.4 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.4834, allocations: 85.2 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.4834, allocations: 4 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.187e-05/0.4835, allocations: 11.98 kB / 1.381 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.4836, allocations: 19.91 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.4836, allocations: 8 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.587e-05/0.4836, allocations: 87.27 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4837, allocations: 4 kB / 1.381 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001993/0.4839, allocations: 16 kB / 1.381 GB, free: 13.52 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.0006865/0.4846, allocations: 0.7654 MB / 1.382 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002319/0.4848, allocations: 99.89 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4848, allocations: 0 / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.4849, allocations: 63.98 kB / 1.382 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001737/0.4851, allocations: 7.984 kB / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.4864, allocations: 0.8418 MB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.4867, allocations: 0.6926 MB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.23e-05/0.4868, allocations: 12.66 kB / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.4868, allocations: 19.44 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of SimCode: time 5.01e-07/0.4868, allocations: 0 / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8293/1.316, allocations: 1.891 MB / 1.386 GB, free: 9.199 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003025/1.317, allocations: 189.4 kB / 1.386 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/3.369, allocations: 4.062 kB / 1.386 GB, free: 8.961 MB / 0.8855 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