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.001908/0.001908, allocations: 109 kB / 21.23 MB, free: 0.6719 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.0032/0.0032, allocations: 209.2 kB / 24.53 MB, free: 4.035 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.446/1.446, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.001928/0.001928, allocations: 72.77 kB / 378.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2782, allocations: 53.37 MB / 431.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01397/0.2922, allocations: 6.119 MB / 438 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007171/0.2994, allocations: 2.326 MB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009155/0.3003, allocations: 31.81 kB / 440.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.303, allocations: 0.6263 MB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001965/0.305, allocations: 453.6 kB / 441.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.3067, allocations: 421.1 kB / 441.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002916/0.3096, allocations: 1.302 MB / 443.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.3106, allocations: 318.3 kB / 443.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.3118, allocations: 0.5023 MB / 444 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.3132, allocations: 0.6033 MB / 444.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003587/0.3136, allocations: 116 kB / 444.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006515/0.3142, allocations: 180 kB / 444.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009189/0.3151, allocations: 0.6583 MB / 445.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.3167, allocations: 0.8855 MB / 446.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004755/0.3215, allocations: 2.646 MB / 449.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3215, allocations: 0 / 449.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3215, allocations: 4 kB / 449.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.071e-05/0.3216, allocations: 4 kB / 449.1 MB, free: 5.695 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.008199/0.3298, allocations: 2.358 MB / 451.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.697e-05/0.3298, allocations: 8.031 kB / 451.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003498/0.3302, allocations: 114.6 kB / 451.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009363/0.3311, allocations: 227.5 kB / 451.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005986/0.3371, allocations: 1.635 MB / 453.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003128/0.3374, allocations: 181.8 kB / 453.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.3377, allocations: 67.94 kB / 453.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.3404, allocations: 0.8282 MB / 454.5 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.3404, allocations: 0 / 454.5 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.3405, allocations: 35.94 kB / 454.5 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.3405, allocations: 12 kB / 454.5 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002059/0.3426, allocations: 0.5517 MB / 455.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/0.3542, allocations: 3.942 MB / 459 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.3563, allocations: 0.5048 MB / 459.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.3576, allocations: 338.1 kB / 459.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.163e-05/0.3577, allocations: 4.281 kB / 459.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/0.3577, allocations: 38.84 kB / 459.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.567e-06/0.3577, allocations: 0 / 459.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.004336/0.362, allocations: 0.8769 MB / 460.8 MB, free: 9.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002433/0.3623, allocations: 265 kB / 461 MB, free: 9.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008458/0.3708, allocations: 3.164 MB / 464.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/0.3709, allocations: 33.7 kB / 464.2 MB, free: 6.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001294/0.3722, allocations: 0.8654 MB / 465.1 MB, free: 5.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000228/0.3724, allocations: 123 kB / 465.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002763/0.3727, allocations: 98.14 kB / 465.3 MB, free: 5.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3729, allocations: 318 kB / 465.6 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/0.3734, allocations: 212.9 kB / 465.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006787/0.3741, allocations: 397.3 kB / 466.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.3752, allocations: 0.5243 MB / 466.7 MB, free: 3.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.3752, allocations: 0 / 466.7 MB, free: 3.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002058/0.3772, allocations: 0.7856 MB / 467.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.3773, allocations: 11.94 kB / 467.5 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3773, allocations: 4 kB / 467.5 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003642/0.3776, allocations: 64.81 kB / 467.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.3781, allocations: 120 kB / 467.7 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.3801, allocations: 1.687 MB / 469.4 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007797/0.3809, allocations: 83.67 kB / 469.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.958e-05/0.3809, allocations: 16 kB / 469.5 MB, free: 0.5508 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.001114/0.382, allocations: 0.6577 MB / 470.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006596/0.3827, allocations: 194.7 kB / 470.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007096/0.3834, allocations: 226.6 kB / 470.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.3834, allocations: 7.938 kB / 470.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3834, allocations: 3.938 kB / 470.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.3834, allocations: 3.984 kB / 470.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004989/0.3884, allocations: 2.123 MB / 472.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3884, allocations: 0 / 472.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004266/0.3888, allocations: 91.94 kB / 472.8 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002221/0.3891, allocations: 56.77 kB / 472.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.3891, allocations: 8 kB / 472.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/0.3909, allocations: 1.644 MB / 474.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3909, allocations: 0 / 474.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.3931, allocations: 0.9883 MB / 475.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.3942, allocations: 378.8 kB / 475.9 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003587/0.3946, allocations: 8 kB / 475.9 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006941/0.3952, allocations: 63.94 kB / 475.9 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3954, allocations: 35.94 kB / 476 MB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/0.3954, allocations: 12 kB / 476 MB, free: 9.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003908/0.3993, allocations: 2.259 MB / 478.2 MB, free: 7.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3993, allocations: 4 kB / 478.2 MB, free: 7.566 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00118/0.4005, allocations: 255.6 kB / 478.5 MB, free: 7.316 MB / 382.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.004388/0.4049, allocations: 1.906 MB / 480.4 MB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.4064, allocations: 0.5891 MB / 481 MB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.4064, allocations: 4.25 kB / 481 MB, free: 4.953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007168/0.4071, allocations: 350.4 kB / 481.3 MB, free: 4.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/0.4092, allocations: 292.9 kB / 481.6 MB, free: 4.312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03446/0.4437, allocations: 19.76 MB / 0.4896 GB, free: 252 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001661/0.4453, allocations: 1.496 MB / 0.4911 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009299/0.4462, allocations: 291.3 kB / 0.4914 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009192/0.4472, allocations: 0.6477 MB / 0.492 GB, free: 13.78 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4472, allocations: 0 / 0.492 GB, free: 13.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0889/0.5361, allocations: 36.84 MB / 0.528 GB, free: 9.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.6/16.14, allocations: 7.984 kB / 0.528 GB, free: 9.172 MB / 446.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: 19.06583270523697] 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'] 16.325702393893152 16.542602586 16.217785666 Calling exit ...