Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.00131/0.00131, 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.001451/0.001451, 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.464/1.464, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.CCCV_Cell,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell",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.002319/0.002319, allocations: 68.77 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3052, allocations: 53.36 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007731/0.313, allocations: 5.609 MB / 437.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003736/0.3167, allocations: 1.909 MB / 439.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005331/0.3172, allocations: 15.88 kB / 439.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.3184, allocations: 0.5174 MB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008432/0.3193, allocations: 397.9 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008917/0.3202, allocations: 366.2 kB / 440.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.3213, allocations: 0.8965 MB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004685/0.3218, allocations: 233.4 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005089/0.3223, allocations: 382.7 kB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005882/0.3229, allocations: 462.3 kB / 442.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.323, allocations: 80 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.3232, allocations: 128 kB / 442.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005227/0.3237, allocations: 0.5843 MB / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006683/0.3244, allocations: 0.7415 MB / 444.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.3267, allocations: 2.136 MB / 446.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3267, allocations: 4 kB / 446.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3267, allocations: 0 / 446.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.062e-05/0.3267, allocations: 0 / 446.3 MB, free: 8.414 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003708/0.3304, allocations: 2.077 MB / 448.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.3304, allocations: 8.031 kB / 448.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3306, allocations: 90.7 kB / 448.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003085/0.3309, allocations: 195.7 kB / 448.7 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002446/0.3333, allocations: 1.459 MB / 450.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.3335, allocations: 96.41 kB / 450.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.3335, allocations: 40 kB / 450.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.3347, allocations: 0.5893 MB / 450.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3347, allocations: 0 / 450.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.076e-05/0.3347, allocations: 24 kB / 450.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.3348, allocations: 12 kB / 450.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007455/0.3355, allocations: 347.7 kB / 451.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004887/0.3404, allocations: 3.191 MB / 454.4 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.3415, allocations: 364.8 kB / 454.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/0.342, allocations: 174 kB / 455 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.342, allocations: 4 kB / 455 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.3421, allocations: 42.5 kB / 455 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.794e-06/0.3421, allocations: 0 / 455 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001927/0.344, allocations: 0.6246 MB / 455.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/0.3442, allocations: 213.6 kB / 455.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/0.3483, allocations: 2.904 MB / 458.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.847e-05/0.3484, allocations: 37.64 kB / 458.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007834/0.3492, allocations: 0.7861 MB / 459.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.661e-05/0.3493, allocations: 79.36 kB / 459.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3494, allocations: 69.97 kB / 459.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3495, allocations: 322 kB / 460 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00038/0.3499, allocations: 120.6 kB / 460.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.3504, allocations: 284.8 kB / 460.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007304/0.3511, allocations: 363.1 kB / 460.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.3511, allocations: 7.938 kB / 460.8 MB, free: 9.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001387/0.3525, allocations: 0.5748 MB / 461.4 MB, free: 8.848 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3525, allocations: 4 kB / 461.4 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3525, allocations: 4 kB / 461.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002822/0.3528, allocations: 61 kB / 461.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.3531, allocations: 75.89 kB / 461.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.3549, allocations: 1.617 MB / 463.1 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005884/0.3555, allocations: 67.73 kB / 463.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.3555, allocations: 16 kB / 463.2 MB, free: 6.891 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0008334/0.3564, allocations: 0.5756 MB / 463.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002649/0.3566, allocations: 170.8 kB / 463.9 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001318/0.358, allocations: 0.5143 MB / 464.4 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.358, allocations: 4.125 kB / 464.5 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.358, allocations: 4 kB / 464.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.358, allocations: 0 / 464.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.361, allocations: 1.665 MB / 466.1 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.361, allocations: 0 / 466.1 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.3612, allocations: 43.95 kB / 466.2 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001907/0.3614, allocations: 44.83 kB / 466.2 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.3614, allocations: 8 kB / 466.2 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.3631, allocations: 1.582 MB / 467.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3631, allocations: 0 / 467.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.3648, allocations: 0.7188 MB / 468.5 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008153/0.3656, allocations: 314.8 kB / 468.8 MB, free: 1.031 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/0.3659, allocations: 4 kB / 468.8 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000518/0.3664, allocations: 47.95 kB / 468.9 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.3665, allocations: 31.94 kB / 468.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.3665, allocations: 8 kB / 468.9 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003389/0.3699, allocations: 2.079 MB / 471 MB, free: 14.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3699, allocations: 3.938 kB / 471 MB, free: 14.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001078/0.371, allocations: 203.7 kB / 471.2 MB, free: 14.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003568/0.3745, allocations: 1.513 MB / 472.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.3757, allocations: 418.6 kB / 473.1 MB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.3757, allocations: 7.938 kB / 473.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005618/0.3763, allocations: 269.8 kB / 473.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/0.3778, allocations: 218.6 kB / 473.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03273/0.4105, allocations: 17.53 MB / 491.1 MB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001875/0.4124, allocations: 1.354 MB / 492.5 MB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008952/0.4133, allocations: 250.8 kB / 492.7 MB, free: 8.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.4143, allocations: 0.5774 MB / 493.3 MB, free: 8.227 MB / 398.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4143, allocations: 0 / 493.3 MB, free: 8.227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08685/0.5012, allocations: 33.14 MB / 0.5141 GB, free: 7.258 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/15.36, allocations: 5.906 kB / 0.5141 GB, free: 7.258 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_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_CCCV_Cell.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.064373857807368] Failed to read output from testmodel.py, exit status != 0: ['time', 'cell.cell.limIntegrator.y', 'cell.limIntegrator.y', 'energy.y'] 15.542858764063567 15.559429571 15.229399546 Calling exit ...