Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008093/0.0008093, allocations: 101.8 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.409e-05/3.432e-05, allocations: 8 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3237/0.4253, allocations: 81.41 MB / 475.8 MB, free: 6.066 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.4256, allocations: 67.97 kB / 475.8 MB, free: 6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01723/0.4428, allocations: 6.358 MB / 482.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4429, allocations: 0 / 482.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.4429, allocations: 4 kB / 482.2 MB, free: 15.61 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001202/0.4441, allocations: 0.6942 MB / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4442, allocations: 8.031 kB / 482.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.74e-05/0.4443, allocations: 70.53 kB / 482.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.4443, allocations: 39.53 kB / 483 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.4449, allocations: 361.3 kB / 483.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.4449, allocations: 24.78 kB / 483.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.445, allocations: 28 kB / 483.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005598/0.4456, allocations: 344.1 kB / 483.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.4456, allocations: 3.953 kB / 483.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.4456, allocations: 8 kB / 483.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4456, allocations: 8 kB / 483.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.446, allocations: 231.1 kB / 484 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.4478, allocations: 1.331 MB / 485.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.4482, allocations: 263.6 kB / 485.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.4484, allocations: 100.8 kB / 485.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.4485, allocations: 4 kB / 485.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.4485, allocations: 30.56 kB / 485.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.4485, allocations: 4 kB / 485.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003446/0.4489, allocations: 170.8 kB / 485.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.4489, allocations: 59.36 kB / 485.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.4492, allocations: 287.4 kB / 486.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.4493, allocations: 25.7 kB / 486.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.4494, allocations: 211.8 kB / 486.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.182e-05/0.4495, allocations: 59.19 kB / 486.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.4495, allocations: 0 / 486.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4496, allocations: 342.8 kB / 486.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.4498, allocations: 71.98 kB / 486.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.45, allocations: 135.6 kB / 487 MB, free: 10.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.4501, allocations: 63.91 kB / 487.1 MB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4501, allocations: 4 kB / 487.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003713/0.4505, allocations: 230.5 kB / 487.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.4505, allocations: 12.34 kB / 487.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4505, allocations: 3.938 kB / 487.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.4505, allocations: 4 kB / 487.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.4507, allocations: 51.91 kB / 487.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.4507, allocations: 4 kB / 487.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004166/0.4512, allocations: 87.72 kB / 487.5 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.4512, allocations: 8 kB / 487.5 MB, free: 9.984 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 0.0001394/0.4513, allocations: 116.9 kB / 487.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.403e-05/0.4514, allocations: 27.62 kB / 487.6 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004767/0.4519, allocations: 204.2 kB / 487.8 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.4519, allocations: 4 kB / 487.8 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4519, allocations: 0 / 487.8 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.4519, allocations: 0 / 487.8 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009085/0.4529, allocations: 0.63 MB / 488.5 MB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4529, allocations: 0 / 488.5 MB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.453, allocations: 27.98 kB / 488.5 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4531, allocations: 0 / 488.5 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.4531, allocations: 8.031 kB / 488.5 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4531, allocations: 4 kB / 488.5 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.4531, allocations: 7.938 kB / 488.5 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006197/0.4537, allocations: 379.2 kB / 488.9 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.893e-05/0.4538, allocations: 112.7 kB / 489 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.149e-05/0.4539, allocations: 4 kB / 489 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.4543, allocations: 87.94 kB / 489.1 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.4546, allocations: 71.88 kB / 489.2 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.4546, allocations: 7.984 kB / 489.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002761/0.4549, allocations: 231.1 kB / 489.4 MB, free: 7.977 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.4549, allocations: 0 / 489.4 MB, free: 7.977 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003721/0.4553, allocations: 87.75 kB / 489.5 MB, free: 7.891 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0009203/0.4562, allocations: 1.009 MB / 490.5 MB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003398/0.4566, allocations: 171.8 kB / 490.6 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4566, allocations: 0 / 490.6 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.4567, allocations: 104.5 kB / 490.8 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.4571, allocations: 54.61 kB / 490.8 MB, free: 6.527 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.4585, allocations: 0.6225 MB / 491.4 MB, free: 5.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.4589, allocations: 0.7794 MB / 492.2 MB, free: 5.059 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001444/0.4591, allocations: 38 kB / 492.2 MB, free: 5.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.4593, allocations: 107.4 kB / 492.3 MB, free: 4.918 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4593, allocations: 0 / 492.3 MB, free: 4.918 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.4797, allocations: 6.2 MB / 498.5 MB, free: 14.89 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.4799, allocations: 175.7 kB / 498.7 MB, free: 14.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.368, allocations: 4 kB / 498.7 MB, free: 14.66 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat does not exist to compare? outputFormat=mat