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_CellRC.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.001386/0.001386, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.001462/0.001462, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.459/1.459, allocations: 230.5 MB / 254.8 MB, free: 15.12 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_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",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.001977/0.001977, allocations: 71.83 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1266, allocations: 53.33 MB / 427 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2064/0.333, allocations: 6.084 MB / 433.1 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003843/0.3369, allocations: 2.32 MB / 435.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005907/0.3375, allocations: 20.44 kB / 435.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.339, allocations: 0.6266 MB / 436 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.34, allocations: 446.9 kB / 436.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009301/0.3409, allocations: 408.2 kB / 436.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.3425, allocations: 1.315 MB / 438.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005505/0.343, allocations: 343.6 kB / 438.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007971/0.3438, allocations: 0.5015 MB / 439 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008182/0.3447, allocations: 0.6058 MB / 439.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.3448, allocations: 116 kB / 439.8 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003768/0.3452, allocations: 180.7 kB / 439.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005287/0.3457, allocations: 0.657 MB / 440.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007185/0.3465, allocations: 0.8891 MB / 441.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003131/0.3496, allocations: 2.642 MB / 444.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3496, allocations: 0 / 444.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3496, allocations: 0 / 444.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.889e-05/0.3497, allocations: 1.25 kB / 444.1 MB, free: 4.23 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005098/0.3548, allocations: 2.444 MB / 446.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.3548, allocations: 10.44 kB / 446.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/0.355, allocations: 108.5 kB / 446.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005011/0.3555, allocations: 224.3 kB / 446.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003031/0.3585, allocations: 1.698 MB / 448.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.3586, allocations: 105.9 kB / 448.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.862e-05/0.3587, allocations: 64.52 kB / 448.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.3602, allocations: 0.8226 MB / 449.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3602, allocations: 5.25 kB / 449.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.3603, allocations: 27.38 kB / 449.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.3603, allocations: 15.06 kB / 449.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.3614, allocations: 0.548 MB / 450.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007242/0.3686, allocations: 3.999 MB / 454.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.3699, allocations: 0.5 MB / 454.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00077/0.3707, allocations: 347.4 kB / 455 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.3707, allocations: 6.906 kB / 455 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.3708, allocations: 39.09 kB / 455.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.465e-06/0.3708, allocations: 0 / 455.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002843/0.3736, allocations: 0.9557 MB / 456 MB, free: 13.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/0.3738, allocations: 266.4 kB / 456.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005288/0.3791, allocations: 3.158 MB / 459.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.3792, allocations: 31.89 kB / 459.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009785/0.3802, allocations: 0.8629 MB / 460.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.3804, allocations: 129.5 kB / 460.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.3806, allocations: 96.7 kB / 460.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.3807, allocations: 326.3 kB / 460.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.3813, allocations: 206.9 kB / 461.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006691/0.382, allocations: 401 kB / 461.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.383, allocations: 0.5166 MB / 462 MB, free: 9.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3831, allocations: 0 / 462 MB, free: 9.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002235/0.3853, allocations: 0.7866 MB / 462.8 MB, free: 9.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3853, allocations: 6.688 kB / 462.8 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.3853, allocations: 7.469 kB / 462.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003252/0.3856, allocations: 72.5 kB / 462.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.3861, allocations: 114 kB / 463 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/0.3882, allocations: 1.789 MB / 464.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3893, allocations: 82.22 kB / 464.8 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.333e-05/0.3894, allocations: 18.34 kB / 464.8 MB, free: 7.414 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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.001349/0.3907, allocations: 0.6601 MB / 465.5 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005987/0.3913, allocations: 196.4 kB / 465.7 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005431/0.3919, allocations: 219.4 kB / 465.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3919, allocations: 2.969 kB / 465.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.3919, allocations: 1.344 kB / 465.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.3919, allocations: 3.984 kB / 465.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004764/0.3967, allocations: 2.151 MB / 468.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3967, allocations: 0 / 468.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/0.3971, allocations: 89.31 kB / 468.2 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002285/0.3973, allocations: 61.75 kB / 468.2 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.3974, allocations: 11.72 kB / 468.2 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.3991, allocations: 1.747 MB / 470 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3991, allocations: 0 / 470 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.4017, allocations: 0.984 MB / 471 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.4029, allocations: 446.4 kB / 471.4 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.4032, allocations: 16.48 kB / 471.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005786/0.4037, allocations: 53.48 kB / 471.5 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.4039, allocations: 40.25 kB / 471.5 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.4039, allocations: 12.94 kB / 471.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003945/0.4079, allocations: 2.253 MB / 473.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4079, allocations: 0 / 473.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001318/0.4092, allocations: 271.4 kB / 474 MB, free: 0.9922 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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.004099/0.4133, allocations: 1.889 MB / 475.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.4147, allocations: 0.6011 MB / 476.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4147, allocations: 0 / 476.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007121/0.4154, allocations: 347.1 kB / 476.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.417, allocations: 282.3 kB / 477.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03241/0.4494, allocations: 19.76 MB / 496.9 MB, free: 9.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001428/0.4508, allocations: 1.497 MB / 498.4 MB, free: 8.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.4518, allocations: 295.2 kB / 498.7 MB, free: 8.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.4529, allocations: 0.6438 MB / 499.3 MB, free: 7.5 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4529, allocations: 0 / 499.3 MB, free: 7.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08304/0.5359, allocations: 36.51 MB / 0.5233 GB, free: 3.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.42, allocations: 8.359 kB / 0.5233 GB, free: 3.262 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_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_CellRC.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.095165577717125] Failed to read output from testmodel.py, exit status != 0: ['time', 'cell.cell.capacitor[1].v', 'cell.cell.capacitor[2].v', 'cell.cell.limIntegrator.y', 'cell.limIntegrator.y', 'energy.y'] 15.591763358097523 15.611440113 15.257867009 Calling exit ...