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.001724/0.001724, allocations: 117.9 kB / 18.5 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.002139/0.002139, allocations: 214.5 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.537/1.537, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.002596/0.002596, allocations: 67.83 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1402, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2394/0.3796, allocations: 5.57 MB / 432.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.3825, allocations: 1.882 MB / 434.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003916/0.3829, allocations: 19.06 kB / 434.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009616/0.3839, allocations: 0.5246 MB / 435 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007152/0.3846, allocations: 392.5 kB / 435.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007416/0.3853, allocations: 375.7 kB / 435.7 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009022/0.3862, allocations: 0.8939 MB / 436.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.3866, allocations: 236.8 kB / 436.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004426/0.3871, allocations: 376.7 kB / 437.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00053/0.3876, allocations: 463.5 kB / 437.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.3877, allocations: 79.84 kB / 437.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.3879, allocations: 123.3 kB / 437.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005006/0.3884, allocations: 0.588 MB / 438.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005422/0.389, allocations: 0.7421 MB / 439.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002407/0.3914, allocations: 2.126 MB / 441.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3914, allocations: 1.219 kB / 441.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3914, allocations: 7.219 kB / 441.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.069e-05/0.3915, allocations: 0 / 441.3 MB, free: 5.789 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.003928/0.3954, allocations: 2.148 MB / 443.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.3954, allocations: 10.52 kB / 443.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.3956, allocations: 90.48 kB / 443.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003824/0.3959, allocations: 195.6 kB / 443.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.3985, allocations: 1.522 MB / 445.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.15e-05/0.3986, allocations: 64.91 kB / 445.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.66e-05/0.3987, allocations: 46.47 kB / 445.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009968/0.3997, allocations: 0.5876 MB / 446 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3997, allocations: 3.844 kB / 446 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.771e-05/0.3997, allocations: 21.5 kB / 446 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.3998, allocations: 11.44 kB / 446 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006692/0.4004, allocations: 348 kB / 446.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/0.4055, allocations: 3.239 MB / 449.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.4067, allocations: 359.1 kB / 450 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/0.4072, allocations: 175.1 kB / 450.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.4072, allocations: 6.219 kB / 450.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.4072, allocations: 38.55 kB / 450.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.214e-06/0.4072, allocations: 0 / 450.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002097/0.4093, allocations: 0.7014 MB / 450.9 MB, free: 500 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.4094, allocations: 210 kB / 451.1 MB, free: 244 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004825/0.4142, allocations: 2.901 MB / 454 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.796e-05/0.4143, allocations: 32.17 kB / 454 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008286/0.4151, allocations: 0.7934 MB / 454.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.4152, allocations: 77.27 kB / 454.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.4154, allocations: 68.58 kB / 455 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4155, allocations: 326.2 kB / 455.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.4159, allocations: 116.7 kB / 455.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.4164, allocations: 291 kB / 455.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.4172, allocations: 364.5 kB / 456 MB, free: 13.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4172, allocations: 1.344 kB / 456 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001647/0.4188, allocations: 0.5665 MB / 456.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.4189, allocations: 7.781 kB / 456.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4189, allocations: 8.312 kB / 456.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002996/0.4192, allocations: 55.48 kB / 456.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.4195, allocations: 76.95 kB / 456.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.4214, allocations: 1.724 MB / 458.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000849/0.4222, allocations: 63.23 kB / 458.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.4222, allocations: 12.19 kB / 458.5 MB, free: 11.62 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.001153/0.4234, allocations: 0.5845 MB / 459.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000589/0.424, allocations: 174 kB / 459.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/0.4258, allocations: 0.5124 MB / 459.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.4258, allocations: 6.266 kB / 459.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.4258, allocations: 0 / 459.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4258, allocations: 1.219 kB / 459.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.4296, allocations: 1.692 MB / 461.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4296, allocations: 1.156 kB / 461.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.4298, allocations: 49.12 kB / 461.6 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.43, allocations: 50.16 kB / 461.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.43, allocations: 8.938 kB / 461.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/0.4317, allocations: 1.668 MB / 463.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4317, allocations: 1.094 kB / 463.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.4337, allocations: 0.7229 MB / 464 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008747/0.4345, allocations: 390 kB / 464.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.4347, allocations: 4.219 kB / 464.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004494/0.4352, allocations: 41.64 kB / 464.4 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.4353, allocations: 33.5 kB / 464.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.4353, allocations: 8.422 kB / 464.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003581/0.4389, allocations: 2.076 MB / 466.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4389, allocations: 0 / 466.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001188/0.4401, allocations: 208.1 kB / 466.8 MB, free: 6.262 MB / 366.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.003195/0.4433, allocations: 1.524 MB / 468.3 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.4443, allocations: 427.9 kB / 468.7 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4443, allocations: 10.41 kB / 468.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005349/0.4449, allocations: 259.3 kB / 469 MB, free: 4.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.4463, allocations: 229.4 kB / 469.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02972/0.476, allocations: 17.53 MB / 486.7 MB, free: 4.195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.4772, allocations: 1.355 MB / 488.1 MB, free: 2.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000859/0.478, allocations: 243.4 kB / 488.3 MB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009392/0.479, allocations: 0.5774 MB / 488.9 MB, free: 1.996 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.479, allocations: 0 / 488.9 MB, free: 1.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.5792, allocations: 32.9 MB / 0.5096 GB, free: 1.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15, allocations: 18.09 kB / 0.5096 GB, free: 1.312 MB / 414.1 MB " [Timeout remaining time 645] (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: 17.709317898843437] Failed to read output from testmodel.py, exit status != 0: ['time', 'cell.cell.limIntegrator.y', 'cell.limIntegrator.y', 'energy.y'] 15.171094499062747 15.194973799 14.799631999 Calling exit ...