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.001456/0.001456, allocations: 106.5 kB / 19.74 MB, free: 2.453 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.001584/0.001584, allocations: 217.1 kB / 22.92 MB, free: 5.195 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.292/1.292, allocations: 230.5 MB / 256.4 MB, free: 8.266 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_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.001848/0.001848, allocations: 67.89 kB / 376.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2173, allocations: 53.33 MB / 429.4 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007168/0.2245, allocations: 5.586 MB / 435 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.2277, allocations: 1.905 MB / 436.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004273/0.2281, allocations: 19.88 kB / 436.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.2292, allocations: 0.5213 MB / 437.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009183/0.2301, allocations: 382 kB / 437.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008881/0.231, allocations: 381.7 kB / 438.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.2322, allocations: 0.8886 MB / 439.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004514/0.2327, allocations: 236.9 kB / 439.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000482/0.2331, allocations: 366.7 kB / 439.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006289/0.2338, allocations: 462.3 kB / 440.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.2339, allocations: 80 kB / 440.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.2342, allocations: 124 kB / 440.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004794/0.2346, allocations: 0.5921 MB / 440.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007302/0.2354, allocations: 0.7415 MB / 441.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.2374, allocations: 2.128 MB / 443.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2374, allocations: 0 / 443.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2374, allocations: 4 kB / 443.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.2375, allocations: 0 / 443.8 MB, free: 9.023 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.0032/0.2407, allocations: 2.153 MB / 445.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2407, allocations: 8.031 kB / 445.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.2408, allocations: 94.7 kB / 446 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.2411, allocations: 195.7 kB / 446.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.2432, allocations: 1.515 MB / 447.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.466e-05/0.2433, allocations: 66.7 kB / 447.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.487e-05/0.2434, allocations: 48 kB / 447.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.2444, allocations: 0.5815 MB / 448.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2444, allocations: 0 / 448.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.2445, allocations: 20 kB / 448.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.2445, allocations: 12 kB / 448.4 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000704/0.2452, allocations: 347.7 kB / 448.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004333/0.2495, allocations: 3.255 MB / 452 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.2506, allocations: 365.2 kB / 452.4 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004569/0.251, allocations: 176.8 kB / 452.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.2511, allocations: 4 kB / 452.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.2511, allocations: 34.56 kB / 452.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.2511, allocations: 0 / 452.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001792/0.2529, allocations: 0.7016 MB / 453.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.253, allocations: 209.6 kB / 453.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/0.2566, allocations: 2.904 MB / 456.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.2566, allocations: 37.64 kB / 456.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007086/0.2573, allocations: 0.7822 MB / 457.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.2574, allocations: 91.22 kB / 457.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.2575, allocations: 69.92 kB / 457.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2576, allocations: 318 kB / 457.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.258, allocations: 120.6 kB / 457.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004384/0.2584, allocations: 292.8 kB / 458.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006823/0.2591, allocations: 357.8 kB / 458.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.2591, allocations: 8 kB / 458.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001145/0.2602, allocations: 0.5712 MB / 459 MB, free: 9.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.2603, allocations: 4 kB / 459 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.2603, allocations: 4 kB / 459 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002552/0.2605, allocations: 56.81 kB / 459.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/0.2608, allocations: 76.08 kB / 459.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.2625, allocations: 1.72 MB / 460.9 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00046/0.2629, allocations: 63.7 kB / 461 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.263, allocations: 12 kB / 461 MB, free: 7.102 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.0007241/0.2637, allocations: 0.5874 MB / 461.6 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.2639, allocations: 174.8 kB / 461.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.265, allocations: 0.5089 MB / 462.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.265, allocations: 4 kB / 462.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.2651, allocations: 8.125 kB / 462.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2651, allocations: 3.984 kB / 462.3 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.2676, allocations: 1.682 MB / 463.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2676, allocations: 0 / 463.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.2678, allocations: 47.94 kB / 464 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.268, allocations: 52.81 kB / 464 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.268, allocations: 8 kB / 464 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.2695, allocations: 1.67 MB / 465.7 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2695, allocations: 0 / 465.7 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.271, allocations: 0.7158 MB / 466.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005626/0.2716, allocations: 383.9 kB / 466.8 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.2717, allocations: 11.98 kB / 466.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/0.2721, allocations: 47.95 kB / 466.9 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.2722, allocations: 27.97 kB / 466.9 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.2722, allocations: 4 kB / 466.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002805/0.275, allocations: 2.083 MB / 469 MB, free: 14.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.275, allocations: 0 / 469 MB, free: 14.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007344/0.2758, allocations: 203.7 kB / 469.2 MB, free: 14.59 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.002946/0.2787, allocations: 1.528 MB / 470.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.2797, allocations: 434.6 kB / 471.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2797, allocations: 0 / 471.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005512/0.2803, allocations: 263.2 kB / 471.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.2814, allocations: 221.4 kB / 471.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/0.3054, allocations: 17.54 MB / 489.1 MB, free: 10.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.3065, allocations: 1.359 MB / 490.5 MB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005065/0.307, allocations: 241.7 kB / 490.7 MB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000699/0.3077, allocations: 0.5774 MB / 491.3 MB, free: 8.168 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3077, allocations: 0 / 491.3 MB, free: 8.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07012/0.3778, allocations: 32.9 MB / 0.5119 GB, free: 7.449 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.56, allocations: 4.062 kB / 0.5119 GB, free: 7.445 MB / 430.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 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: 15.808306337996328]