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.00119/0.00119, allocations: 105.8 kB / 19.74 MB, free: 2.566 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.001336/0.001336, allocations: 221 kB / 22.92 MB, free: 5.531 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.28/1.28, allocations: 230.5 MB / 256.4 MB, free: 8.438 MB / 206.1 MB " [Timeout remaining time 179] 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.001802/0.001802, allocations: 71.83 kB / 376.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2165, allocations: 53.31 MB / 429.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007295/0.2238, allocations: 6.119 MB / 435.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.2274, allocations: 2.329 MB / 437.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003979/0.2278, allocations: 15.94 kB / 437.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.2291, allocations: 0.6302 MB / 438.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007655/0.2298, allocations: 453.7 kB / 438.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007799/0.2306, allocations: 405.5 kB / 439.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.2319, allocations: 1.31 MB / 440.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004858/0.2324, allocations: 301.9 kB / 440.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005165/0.2329, allocations: 0.4945 MB / 441.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006673/0.2336, allocations: 0.6033 MB / 442 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.2337, allocations: 116 kB / 442.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002941/0.234, allocations: 184 kB / 442.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004898/0.2345, allocations: 0.6621 MB / 443 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007532/0.2353, allocations: 0.8855 MB / 443.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002361/0.2376, allocations: 2.642 MB / 446.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2377, allocations: 4 kB / 446.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2377, allocations: 7.938 kB / 446.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.856e-05/0.2377, allocations: 0 / 446.5 MB, free: 6.234 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.003538/0.2412, allocations: 2.43 MB / 448.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.2413, allocations: 12.03 kB / 449 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001263/0.2414, allocations: 106.7 kB / 449.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.2417, allocations: 231.4 kB / 449.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/0.244, allocations: 1.697 MB / 451 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.2441, allocations: 104.7 kB / 451.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.2442, allocations: 63.95 kB / 451.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.2455, allocations: 0.8297 MB / 452 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2455, allocations: 0 / 452 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.375e-05/0.2456, allocations: 31.98 kB / 452 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.2456, allocations: 16 kB / 452 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.2466, allocations: 0.5477 MB / 452.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005264/0.2519, allocations: 3.998 MB / 456.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.2531, allocations: 0.5054 MB / 457.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006997/0.2538, allocations: 333.2 kB / 457.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.2539, allocations: 8.281 kB / 457.4 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.2539, allocations: 46.83 kB / 457.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.453e-06/0.2539, allocations: 0 / 457.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002185/0.2561, allocations: 0.95 MB / 458.4 MB, free: 9.973 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.2562, allocations: 265 kB / 458.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.26, allocations: 3.16 MB / 461.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.26, allocations: 33.7 kB / 461.9 MB, free: 6.418 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007536/0.2608, allocations: 0.8537 MB / 462.7 MB, free: 5.559 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.2609, allocations: 134.9 kB / 462.8 MB, free: 5.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.2611, allocations: 90.2 kB / 462.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2612, allocations: 330 kB / 463.3 MB, free: 5.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004588/0.2617, allocations: 205 kB / 463.5 MB, free: 4.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.2623, allocations: 398 kB / 463.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009227/0.2632, allocations: 0.5243 MB / 464.4 MB, free: 3.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.2632, allocations: 4 kB / 464.4 MB, free: 3.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001498/0.2647, allocations: 0.7815 MB / 465.2 MB, free: 2.973 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.2647, allocations: 8.375 kB / 465.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.2647, allocations: 4 kB / 465.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002727/0.265, allocations: 68.81 kB / 465.2 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004463/0.2654, allocations: 111.9 kB / 465.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.2671, allocations: 1.81 MB / 467.2 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005561/0.2677, allocations: 75.53 kB / 467.2 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.2677, allocations: 16 kB / 467.2 MB, free: 0.7461 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.0007943/0.2685, allocations: 0.6539 MB / 467.9 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.2688, allocations: 194.9 kB / 468.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002747/0.2691, allocations: 222.6 kB / 468.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2691, allocations: 4 kB / 468.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2691, allocations: 0 / 468.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.2691, allocations: 8.109 kB / 468.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00322/0.2723, allocations: 2.159 MB / 470.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.2723, allocations: 3.938 kB / 470.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/0.2727, allocations: 83.94 kB / 470.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.2729, allocations: 64.81 kB / 470.6 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.2729, allocations: 8 kB / 470.6 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001559/0.2745, allocations: 1.737 MB / 472.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2745, allocations: 0 / 472.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.2763, allocations: 0.9921 MB / 473.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000671/0.277, allocations: 451.7 kB / 473.8 MB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.2771, allocations: 11.98 kB / 473.8 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005049/0.2776, allocations: 51.95 kB / 473.9 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.995e-05/0.2777, allocations: 40.19 kB / 473.9 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.2778, allocations: 15.98 kB / 473.9 MB, free: 9.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002867/0.2806, allocations: 2.259 MB / 476.2 MB, free: 7.516 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2806, allocations: 0 / 476.2 MB, free: 7.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007936/0.2814, allocations: 259.5 kB / 476.4 MB, free: 7.262 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.0036/0.285, allocations: 1.904 MB / 478.3 MB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.2863, allocations: 0.5885 MB / 478.9 MB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2863, allocations: 0 / 478.9 MB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006283/0.2869, allocations: 347.2 kB / 479.3 MB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.288, allocations: 283.1 kB / 479.5 MB, free: 4.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02635/0.3144, allocations: 19.76 MB / 499.3 MB, free: 208 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.3155, allocations: 1.493 MB / 0.4891 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006351/0.3162, allocations: 303.1 kB / 0.4893 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007805/0.3169, allocations: 0.6399 MB / 0.49 GB, free: 13.74 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3169, allocations: 0 / 0.49 GB, free: 13.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07666/0.3936, allocations: 36.51 MB / 0.5256 GB, free: 9.473 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14, allocations: 7.188 kB / 0.5256 GB, free: 9.469 MB / 446.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 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: 16.3927854020003]