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.0008857/0.0008857, allocations: 92.53 kB / 16.3 MB, free: 5.539 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.0009598/0.0009597, allocations: 184.6 kB / 17.2 MB, free: 5.473 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.45/1.45, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002649, allocations: 4.781 kB / 300.8 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 50.42 MB / 351.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003081/0.1193, allocations: 2.4 MB / 353.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.1205, allocations: 0.6938 MB / 354.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1207, allocations: 11.94 kB / 354.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.1208, allocations: 39.73 kB / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.1211, allocations: 111.6 kB / 354.5 MB, free: 440 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.1213, allocations: 67.88 kB / 354.5 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003836/0.1217, allocations: 275.4 kB / 354.8 MB, free: 96 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.122, allocations: 145.2 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.1223, allocations: 123.5 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.1225, allocations: 139.4 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/0.1226, allocations: 16 kB / 355.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.1228, allocations: 31.98 kB / 355.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1229, allocations: 71.73 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.521e-05/0.123, allocations: 89.52 kB / 355.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006634/0.1237, allocations: 379.2 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.083e-06/0.1237, allocations: 0 / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1237, allocations: 0 / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1237, allocations: 3.938 kB / 355.8 MB, free: 15.1 MB / 302.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.001729/0.1254, allocations: 0.7881 MB / 356.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1255, allocations: 8.031 kB / 356.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.258e-05/0.1256, allocations: 66.53 kB / 356.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.1257, allocations: 43.53 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.1261, allocations: 333.4 kB / 357 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.1261, allocations: 24.66 kB / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.406e-05/0.1262, allocations: 35.86 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.1268, allocations: 337.9 kB / 357.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1268, allocations: 4 kB / 357.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.1268, allocations: 12 kB / 357.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.1268, allocations: 8 kB / 357.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.1273, allocations: 238.4 kB / 357.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.1295, allocations: 1.307 MB / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003553/0.1298, allocations: 182.5 kB / 359.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.1299, allocations: 3.984 kB / 359.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.1299, allocations: 38.56 kB / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.1299, allocations: 0 / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004931/0.1304, allocations: 237.5 kB / 359.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.1305, allocations: 51.41 kB / 359.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004011/0.1309, allocations: 318.9 kB / 359.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.1309, allocations: 29.7 kB / 359.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.1311, allocations: 216 kB / 360 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.531e-05/0.1311, allocations: 51.3 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.1312, allocations: 4 kB / 360.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1313, allocations: 334.8 kB / 360.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.1315, allocations: 79.89 kB / 360.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.1316, allocations: 126.8 kB / 360.6 MB, free: 10 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.1318, allocations: 62.75 kB / 360.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1318, allocations: 0 / 360.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004063/0.1322, allocations: 249 kB / 360.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1322, allocations: 8 kB / 360.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1322, allocations: 0 / 360.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1322, allocations: 11.89 kB / 360.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.1326, allocations: 47.91 kB / 361 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.1326, allocations: 4 kB / 361 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.133, allocations: 79.97 kB / 361.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.283e-05/0.133, allocations: 15.98 kB / 361.1 MB, free: 9.527 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.0001708/0.1332, allocations: 157.7 kB / 361.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.1333, allocations: 23.72 kB / 361.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003981/0.1337, allocations: 215.7 kB / 361.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1337, allocations: 0 / 361.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.1337, allocations: 3.953 kB / 361.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1337, allocations: 3.938 kB / 361.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000441/0.1341, allocations: 369.3 kB / 361.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1341, allocations: 0 / 361.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.1343, allocations: 35.97 kB / 361.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.1343, allocations: 0 / 361.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1344, allocations: 8 kB / 361.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1344, allocations: 0 / 361.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1344, allocations: 0 / 361.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005135/0.1349, allocations: 390.1 kB / 362.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.524e-05/0.135, allocations: 104.8 kB / 362.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/0.135, allocations: 4 kB / 362.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004215/0.1355, allocations: 79.98 kB / 362.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.1357, allocations: 71.88 kB / 362.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1357, allocations: 4 kB / 362.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003087/0.1361, allocations: 237.9 kB / 362.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1361, allocations: 0 / 362.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.1364, allocations: 87.69 kB / 362.8 MB, free: 7.668 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.00127/0.1377, allocations: 0.9191 MB / 363.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.1381, allocations: 183.8 kB / 363.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1381, allocations: 0 / 363.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.1382, allocations: 91.89 kB / 364 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.1386, allocations: 57.25 kB / 364.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003799/0.1424, allocations: 3.037 MB / 367.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008577/0.1433, allocations: 0.7872 MB / 367.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001448/0.1434, allocations: 34.28 kB / 367.9 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.1437, allocations: 99.41 kB / 368 MB, free: 2.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1437, allocations: 7.938 kB / 368 MB, free: 2.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1885/0.3322, allocations: 6.286 MB / 374.3 MB, free: 23.15 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.3324, allocations: 199.7 kB / 374.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.338, allocations: 0 / 374.5 MB, free: 22.91 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