Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001882/0.001882, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00209/0.00209, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 64.77 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2637, allocations: 53.38 MB / 431.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004486/0.2681, allocations: 3.021 MB / 434.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.2697, allocations: 0.7556 MB / 435.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.2699, allocations: 11.94 kB / 435.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002338/0.2701, allocations: 63.36 kB / 435.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002868/0.2704, allocations: 111.1 kB / 435.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.2708, allocations: 107.8 kB / 436 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.2712, allocations: 414.3 kB / 436.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.2715, allocations: 146.4 kB / 436.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.2717, allocations: 167.4 kB / 436.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.272, allocations: 183.2 kB / 436.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.926e-05/0.272, allocations: 40 kB / 436.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.2722, allocations: 55.98 kB / 437 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.2723, allocations: 107.7 kB / 437.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.2725, allocations: 207 kB / 437.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006027/0.2731, allocations: 0.498 MB / 437.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2731, allocations: 8 kB / 437.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2731, allocations: 0 / 437.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.2731, allocations: 0 / 437.8 MB, free: 1.109 MB / 334.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.001578/0.2747, allocations: 0.7156 MB / 438.5 MB, free: 368 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.2747, allocations: 8.031 kB / 438.5 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.453e-05/0.2748, allocations: 74.66 kB / 438.6 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.69e-05/0.2749, allocations: 40.7 kB / 438.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005663/0.2755, allocations: 289 kB / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.2755, allocations: 25.03 kB / 438.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.653e-05/0.2756, allocations: 28.38 kB / 438.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000596/0.2762, allocations: 342 kB / 439.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2762, allocations: 0 / 439.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.2762, allocations: 16 kB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.2762, allocations: 11.98 kB / 439.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004385/0.2767, allocations: 234.5 kB / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.2786, allocations: 1.261 MB / 440.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003951/0.279, allocations: 178.4 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.2793, allocations: 112.8 kB / 441.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.2793, allocations: 7.828 kB / 441.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.2793, allocations: 42.5 kB / 441.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.392e-06/0.2793, allocations: 0 / 441.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005464/0.2799, allocations: 225.7 kB / 441.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.2799, allocations: 55.41 kB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.2803, allocations: 324.2 kB / 441.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2803, allocations: 29.7 kB / 441.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.2805, allocations: 212.4 kB / 442 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.446e-05/0.2806, allocations: 63.47 kB / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.2806, allocations: 41.7 kB / 442.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.2808, allocations: 334.8 kB / 442.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.2809, allocations: 71.97 kB / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.2811, allocations: 139.6 kB / 442.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000246/0.2814, allocations: 163.6 kB / 442.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2814, allocations: 0 / 442.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004111/0.2818, allocations: 247.9 kB / 443 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.2818, allocations: 4 kB / 443 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.2818, allocations: 4 kB / 443 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.2818, allocations: 4 kB / 443 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.282, allocations: 43.91 kB / 443 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.282, allocations: 4 kB / 443 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.2824, allocations: 71.89 kB / 443.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.2824, allocations: 12 kB / 443.1 MB, free: 11.45 MB / 350.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.on2,pulseSeries.on1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.2826, allocations: 157.7 kB / 443.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.857e-05/0.2827, allocations: 27.81 kB / 443.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004217/0.2831, allocations: 198.4 kB / 443.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2831, allocations: 4 kB / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2831, allocations: 0 / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.2831, allocations: 0 / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008712/0.284, allocations: 0.6076 MB / 444.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.284, allocations: 0 / 444.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.2841, allocations: 27.92 kB / 444.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.2841, allocations: 4 kB / 444.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.2841, allocations: 4 kB / 444.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.2842, allocations: 4 kB / 444.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2842, allocations: 3.938 kB / 444.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.2847, allocations: 384.5 kB / 444.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.283e-05/0.2847, allocations: 35.77 kB / 444.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.498e-05/0.2848, allocations: 7.938 kB / 444.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003949/0.2852, allocations: 55.92 kB / 444.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.2854, allocations: 75.92 kB / 444.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2854, allocations: 11.94 kB / 444.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002657/0.2857, allocations: 235.1 kB / 444.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2857, allocations: 0 / 444.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.286, allocations: 87.78 kB / 445 MB, free: 9.461 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009513/0.287, allocations: 0.9149 MB / 445.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003887/0.2874, allocations: 171.8 kB / 446.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2874, allocations: 0 / 446.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.2876, allocations: 99.88 kB / 446.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.288, allocations: 57.47 kB / 446.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004148/0.2921, allocations: 3.044 MB / 449.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.2926, allocations: 0.7753 MB / 450.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001707/0.2927, allocations: 38.28 kB / 450.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.2929, allocations: 107.4 kB / 450.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2929, allocations: 3.938 kB / 450.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.3265, allocations: 7.546 MB / 457.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.6/8.927, allocations: 0 / 457.8 MB, free: 12.66 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.577746021095663] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', 'superCap.capacitor.v'] 9.002216645050794 9.023388612 8.745940289 Calling exit ...