Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001343/0.001343, allocations: 109 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.001542/0.001542, allocations: 213.6 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.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",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.0034/0.0034, allocations: 68.75 kB / 378.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.35, allocations: 53.36 MB / 431.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006108/0.3561, allocations: 4.093 MB / 436 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00362/0.3598, allocations: 2.096 MB / 438.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004427/0.3602, allocations: 15.88 kB / 438.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.3616, allocations: 0.5876 MB / 438.7 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009117/0.3625, allocations: 394 kB / 439.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007041/0.3632, allocations: 282.5 kB / 439.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.3644, allocations: 0.9975 MB / 440.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003937/0.3648, allocations: 225 kB / 440.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004753/0.3653, allocations: 390.8 kB / 440.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006644/0.366, allocations: 0.5061 MB / 441.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.3661, allocations: 83.94 kB / 441.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.3664, allocations: 140 kB / 441.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000387/0.3667, allocations: 478.6 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006106/0.3674, allocations: 0.6329 MB / 442.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002068/0.3694, allocations: 1.77 MB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3694, allocations: 0 / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3694, allocations: 4 kB / 444.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.229e-05/0.3695, allocations: 0 / 444.5 MB, free: 10.24 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003607/0.3731, allocations: 1.796 MB / 446.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3731, allocations: 16.03 kB / 446.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.3733, allocations: 90.7 kB / 446.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003005/0.3736, allocations: 167.9 kB / 446.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.3756, allocations: 1.134 MB / 447.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.3758, allocations: 181.8 kB / 447.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.086e-05/0.3759, allocations: 51.95 kB / 448 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3771, allocations: 0.6634 MB / 448.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3771, allocations: 0 / 448.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.3771, allocations: 27.94 kB / 448.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.3771, allocations: 12 kB / 448.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/0.378, allocations: 435.7 kB / 449.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004549/0.3825, allocations: 2.82 MB / 451.9 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009345/0.3835, allocations: 403.2 kB / 452.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006277/0.3841, allocations: 292.7 kB / 452.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.3841, allocations: 4 kB / 452.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.3842, allocations: 42.5 kB / 452.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.964e-06/0.3842, allocations: 0 / 452.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001861/0.386, allocations: 0.6969 MB / 453.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.3862, allocations: 269 kB / 453.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002955/0.3891, allocations: 2.242 MB / 455.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.054e-05/0.3892, allocations: 41.7 kB / 455.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006132/0.3898, allocations: 0.6435 MB / 456.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3899, allocations: 111.1 kB / 456.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.39, allocations: 77.97 kB / 456.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3902, allocations: 325.9 kB / 457 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000351/0.3905, allocations: 156.6 kB / 457.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004622/0.391, allocations: 308.5 kB / 457.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/0.3917, allocations: 396.7 kB / 457.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.3917, allocations: 4 kB / 457.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001373/0.3931, allocations: 0.6453 MB / 458.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3931, allocations: 7.938 kB / 458.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3931, allocations: 4 kB / 458.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002992/0.3934, allocations: 64.94 kB / 458.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.3938, allocations: 91.83 kB / 458.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.3956, allocations: 1.667 MB / 460.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.3962, allocations: 59.8 kB / 460.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.3962, allocations: 16 kB / 460.4 MB, free: 9.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007945/0.397, allocations: 485.5 kB / 460.9 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002476/0.3972, allocations: 143.1 kB / 461 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.3975, allocations: 165.5 kB / 461.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.3975, allocations: 11.97 kB / 461.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3975, allocations: 0 / 461.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3975, allocations: 0 / 461.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002878/0.4004, allocations: 1.629 MB / 462.8 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4004, allocations: 128 / 462.8 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.4007, allocations: 71.89 kB / 462.9 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001992/0.4009, allocations: 60.88 kB / 463 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.4009, allocations: 8 kB / 463 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.4026, allocations: 1.621 MB / 464.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4026, allocations: 3.938 kB / 464.6 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.4041, allocations: 0.803 MB / 465.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005759/0.4047, allocations: 262.9 kB / 465.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.4048, allocations: 12 kB / 465.7 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/0.4053, allocations: 47.95 kB / 465.7 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.4054, allocations: 27.95 kB / 465.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.4054, allocations: 11.98 kB / 465.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002273/0.4077, allocations: 1.608 MB / 467.4 MB, free: 2.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4077, allocations: 0 / 467.4 MB, free: 2.578 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007851/0.4085, allocations: 211.7 kB / 467.6 MB, free: 2.371 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003497/0.412, allocations: 1.725 MB / 469.3 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.4131, allocations: 498.6 kB / 469.8 MB, free: 308 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.4131, allocations: 3.906 kB / 469.8 MB, free: 304 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005578/0.4137, allocations: 303.2 kB / 470.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.4147, allocations: 211.8 kB / 470.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02154/0.4363, allocations: 13.91 MB / 484.2 MB, free: 1.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.4373, allocations: 1.256 MB / 485.5 MB, free: 352 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006608/0.4379, allocations: 219.8 kB / 485.7 MB, free: 128 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006555/0.4386, allocations: 479.4 kB / 486.2 MB, free: 15.65 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4386, allocations: 0 / 486.2 MB, free: 15.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0744/0.513, allocations: 28.38 MB / 0.5025 GB, free: 3.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/15.12, allocations: 14.58 kB / 0.5025 GB, free: 3.445 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.191062711179256] Failed to read output from testmodel.py, exit status != 0: ['time', 'battery.capacitor[1].v', 'battery.capacitor[2].v', 'battery.limIntegrator.y', 'energy.y'] 15.299539784900844 15.321933479 14.947695975 Calling exit ...