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.001381/0.001381, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001602/0.001602, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.483/1.483, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.0023/0.0023, allocations: 65 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3079, allocations: 53.36 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006236/0.3141, allocations: 4.087 MB / 436 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00387/0.318, allocations: 2.084 MB / 438.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005101/0.3185, allocations: 19.88 kB / 438.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.32, allocations: 0.5872 MB / 438.7 MB, free: 108 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009484/0.3209, allocations: 402 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007617/0.3217, allocations: 290.6 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.3231, allocations: 0.9859 MB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004448/0.3235, allocations: 236.9 kB / 440.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005442/0.324, allocations: 390.8 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007027/0.3248, allocations: 0.5061 MB / 441.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.3249, allocations: 80 kB / 441.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.3252, allocations: 144 kB / 441.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003976/0.3256, allocations: 474.6 kB / 442.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006065/0.3262, allocations: 0.629 MB / 442.8 MB, free: 12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002052/0.3282, allocations: 1.774 MB / 444.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3282, allocations: 0 / 444.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3282, allocations: 0 / 444.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.946e-05/0.3283, allocations: 0 / 444.5 MB, free: 10.22 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.003344/0.3316, allocations: 1.8 MB / 446.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.3316, allocations: 12.03 kB / 446.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/0.3318, allocations: 94.7 kB / 446.5 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.3321, allocations: 167.9 kB / 446.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.334, allocations: 1.13 MB / 447.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.3342, allocations: 173.8 kB / 447.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.3343, allocations: 55.95 kB / 448 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.3355, allocations: 0.6674 MB / 448.6 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3355, allocations: 0 / 448.6 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.3356, allocations: 24 kB / 448.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.3356, allocations: 12 kB / 448.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008635/0.3364, allocations: 439.6 kB / 449.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004994/0.3414, allocations: 2.824 MB / 451.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009929/0.3424, allocations: 395.3 kB / 452.3 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006675/0.3431, allocations: 284.7 kB / 452.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.3431, allocations: 15.98 kB / 452.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.3432, allocations: 42.5 kB / 452.6 MB, free: 1.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.3432, allocations: 0 / 452.6 MB, free: 1.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001986/0.3452, allocations: 0.6968 MB / 453.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/0.3453, allocations: 269 kB / 453.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/0.3486, allocations: 2.246 MB / 455.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.842e-05/0.3487, allocations: 33.7 kB / 455.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006308/0.3494, allocations: 0.6396 MB / 456.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.3495, allocations: 119 kB / 456.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.3496, allocations: 78.03 kB / 456.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3498, allocations: 321.9 kB / 457 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.3501, allocations: 160.6 kB / 457.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.3506, allocations: 304.6 kB / 457.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007476/0.3514, allocations: 400.6 kB / 457.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.3514, allocations: 4 kB / 457.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001537/0.3529, allocations: 0.6453 MB / 458.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3529, allocations: 7.938 kB / 458.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.353, allocations: 11.92 kB / 458.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003183/0.3533, allocations: 60.81 kB / 458.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.3537, allocations: 92.02 kB / 458.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/0.3556, allocations: 1.66 MB / 460.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005765/0.3561, allocations: 63.8 kB / 460.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.3562, allocations: 8 kB / 460.4 MB, free: 9.734 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.0007498/0.3569, allocations: 493.5 kB / 460.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002702/0.3572, allocations: 143.1 kB / 461 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003134/0.3575, allocations: 161.5 kB / 461.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.3575, allocations: 7.984 kB / 461.2 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3575, allocations: 0 / 461.2 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3575, allocations: 0 / 461.2 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.3607, allocations: 1.633 MB / 462.8 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.3607, allocations: 4.125 kB / 462.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.361, allocations: 71.89 kB / 462.9 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.3612, allocations: 60.88 kB / 463 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.3613, allocations: 8 kB / 463 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.3631, allocations: 1.621 MB / 464.6 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.3631, allocations: 3.938 kB / 464.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.3647, allocations: 0.803 MB / 465.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006226/0.3653, allocations: 262.9 kB / 465.7 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/0.3655, allocations: 8 kB / 465.7 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005462/0.3661, allocations: 51.95 kB / 465.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.3662, allocations: 27.95 kB / 465.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.3662, allocations: 11.92 kB / 465.8 MB, free: 4.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002791/0.369, allocations: 1.608 MB / 467.4 MB, free: 2.555 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.369, allocations: 0 / 467.4 MB, free: 2.555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009009/0.3699, allocations: 207.7 kB / 467.6 MB, free: 2.352 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.003825/0.3737, allocations: 1.726 MB / 469.3 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.375, allocations: 494.6 kB / 469.8 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.375, allocations: 3.906 kB / 469.8 MB, free: 284 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000633/0.3756, allocations: 307.1 kB / 470.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.3769, allocations: 209 kB / 470.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02424/0.4011, allocations: 13.91 MB / 484.2 MB, free: 1.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/0.4024, allocations: 1.256 MB / 485.5 MB, free: 336 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006509/0.403, allocations: 215.8 kB / 485.7 MB, free: 116 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008159/0.4039, allocations: 483.4 kB / 486.1 MB, free: 15.64 MB / 398.1 MB Notification: Performance of SimCode: time 1.844e-06/0.4039, allocations: 0 / 486.1 MB, free: 15.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07914/0.483, allocations: 28.39 MB / 0.5025 GB, free: 3.434 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/14.72, allocations: 14.89 kB / 0.5025 GB, free: 3.422 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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: 17.44706673687324] Failed to read output from testmodel.py, exit status != 0: ['time', 'battery.capacitor[1].v', 'battery.capacitor[2].v', 'battery.limIntegrator.y', 'energy.y'] 14.903141548857093 14.918594221 14.58691289 Calling exit ...