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/ModelicaServices 4.0.0+maint.om/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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008375/0.0008376, allocations: 86.7 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008616/0.0008617, allocations: 182.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.2 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003036, allocations: 8.281 kB / 300.9 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1349, allocations: 50.42 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003191/0.1381, allocations: 2.516 MB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.1394, allocations: 0.6819 MB / 354.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.1396, allocations: 12 kB / 354.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001859/0.1398, allocations: 39.62 kB / 354.6 MB, free: 8.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.1401, allocations: 91.3 kB / 354.7 MB, free: 8.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.1404, allocations: 71.91 kB / 354.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004832/0.1409, allocations: 386.3 kB / 355.1 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.1413, allocations: 149.1 kB / 355.3 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.1414, allocations: 127.4 kB / 355.4 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.1417, allocations: 147.3 kB / 355.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.776e-05/0.1417, allocations: 16 kB / 355.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.1418, allocations: 31.94 kB / 355.6 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.142, allocations: 83.7 kB / 355.7 MB, free: 7.262 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.963e-05/0.1421, allocations: 89.52 kB / 355.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.1425, allocations: 386.9 kB / 356.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1425, allocations: 0 / 356.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1425, allocations: 0 / 356.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1425, allocations: 0 / 356.1 MB, free: 6.789 MB / 286.1 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.00153/0.1441, allocations: 0.7702 MB / 356.9 MB, free: 5.973 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.1441, allocations: 8.031 kB / 356.9 MB, free: 5.965 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001583/0.1443, allocations: 70.53 kB / 357 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.059e-05/0.1444, allocations: 39.53 kB / 357 MB, free: 5.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.1448, allocations: 333.5 kB / 357.3 MB, free: 5.484 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.1449, allocations: 24.66 kB / 357.4 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.134e-05/0.145, allocations: 31.94 kB / 357.4 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00062/0.1457, allocations: 345.9 kB / 357.7 MB, free: 5.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1457, allocations: 0 / 357.7 MB, free: 5.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.1457, allocations: 12 kB / 357.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1457, allocations: 8 kB / 357.8 MB, free: 5.062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005387/0.1463, allocations: 238.4 kB / 358 MB, free: 4.824 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.1482, allocations: 1.327 MB / 359.3 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.1486, allocations: 170.6 kB / 359.5 MB, free: 3.234 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.1489, allocations: 132.8 kB / 359.6 MB, free: 3.102 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.1489, allocations: 0 / 359.6 MB, free: 3.102 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.149, allocations: 34.84 kB / 359.6 MB, free: 3.059 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.703e-06/0.149, allocations: 3.938 kB / 359.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005267/0.1495, allocations: 225.2 kB / 359.9 MB, free: 2.828 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.1496, allocations: 51.41 kB / 359.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00042/0.15, allocations: 322.9 kB / 360.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.15, allocations: 29.7 kB / 360.3 MB, free: 2.414 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.1502, allocations: 216 kB / 360.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.348e-05/0.1503, allocations: 51.27 kB / 360.5 MB, free: 2.148 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/0.1503, allocations: 4 kB / 360.5 MB, free: 2.145 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.1505, allocations: 338.8 kB / 360.9 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.1507, allocations: 67.95 kB / 360.9 MB, free: 1.738 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.1509, allocations: 135.6 kB / 361.1 MB, free: 1.578 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.151, allocations: 65.94 kB / 361.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1511, allocations: 0 / 361.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003918/0.1515, allocations: 237.1 kB / 361.3 MB, free: 1.277 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1515, allocations: 7.984 kB / 361.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.1515, allocations: 4 kB / 361.4 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.1515, allocations: 4 kB / 361.4 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1517, allocations: 47.92 kB / 361.4 MB, free: 1.215 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.1517, allocations: 7.953 kB / 361.4 MB, free: 1.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.1521, allocations: 91.95 kB / 361.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.1521, allocations: 8 kB / 361.5 MB, free: 1.109 MB / 286.1 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 () * Number of clocked 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.0001944/0.1523, allocations: 157.8 kB / 361.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.662e-05/0.1524, allocations: 27.72 kB / 361.7 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004254/0.1528, allocations: 201.5 kB / 361.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1529, allocations: 0 / 361.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1529, allocations: 0 / 361.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.1529, allocations: 7.953 kB / 361.9 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009568/0.1538, allocations: 0.62 MB / 362.5 MB, free: 20 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1539, allocations: 7.969 kB / 362.5 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.154, allocations: 27.98 kB / 362.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.154, allocations: 0 / 362.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.1541, allocations: 11.95 kB / 362.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1541, allocations: 0 / 362.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1541, allocations: 0 / 362.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.1547, allocations: 386.4 kB / 362.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.1549, allocations: 116.8 kB / 363.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.257e-05/0.155, allocations: 3.984 kB / 363.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003816/0.1553, allocations: 83.88 kB / 363.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.1556, allocations: 71.86 kB / 363.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.1556, allocations: 12 kB / 363.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002571/0.1559, allocations: 229.9 kB / 363.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1559, allocations: 0 / 363.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004143/0.1563, allocations: 79.75 kB / 363.5 MB, free: 14.98 MB / 302.1 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 () * Number of clocked 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.0008756/0.1572, allocations: 0.918 MB / 364.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003453/0.1575, allocations: 184.2 kB / 364.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1575, allocations: 64 / 364.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.1577, allocations: 110.7 kB / 364.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.1582, allocations: 59.88 kB / 364.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.1615, allocations: 1.997 MB / 366.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006085/0.1621, allocations: 0.7716 MB / 367.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.1623, allocations: 38.27 kB / 367.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.1625, allocations: 103.4 kB / 367.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1625, allocations: 0 / 367.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02041/0.1829, allocations: 6.298 MB / 374 MB, free: 4.574 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.1831, allocations: 197.5 kB / 374.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.082/2.265, allocations: 7.438 kB / 374.2 MB, free: 4.336 MB / 302.1 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