Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001449/0.001449, 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.001577/0.001577, allocations: 220.5 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.284/1.284, allocations: 230.5 MB / 256.4 MB, free: 8.441 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.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",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.001776/0.001776, allocations: 59.91 kB / 376.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2087, allocations: 53.32 MB / 429.4 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005081/0.2138, allocations: 4.079 MB / 433.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003033/0.2168, allocations: 2.089 MB / 435.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.2171, allocations: 15.94 kB / 435.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.2183, allocations: 0.587 MB / 436.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006326/0.2189, allocations: 398 kB / 436.5 MB, free: 288 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005573/0.2195, allocations: 290 kB / 436.8 MB, free: 0 / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.2205, allocations: 0.9851 MB / 437.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003454/0.2208, allocations: 228.6 kB / 438 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003762/0.2212, allocations: 382.8 kB / 438.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005601/0.2218, allocations: 0.5099 MB / 438.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.2219, allocations: 80 kB / 439 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.2221, allocations: 140 kB / 439.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003714/0.2225, allocations: 482.6 kB / 439.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005244/0.223, allocations: 0.6251 MB / 440.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001573/0.2246, allocations: 1.77 MB / 442 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2246, allocations: 0 / 442 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2246, allocations: 0 / 442 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.2246, allocations: 0 / 442 MB, free: 10.8 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002631/0.2272, allocations: 1.872 MB / 443.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2273, allocations: 12.03 kB / 443.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.2274, allocations: 94.64 kB / 444 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.2276, allocations: 171.9 kB / 444.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.2291, allocations: 1.194 MB / 445.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.2292, allocations: 96.72 kB / 445.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.652e-05/0.2293, allocations: 51.95 kB / 445.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.2303, allocations: 0.6557 MB / 446.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.2303, allocations: 3.984 kB / 446.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.872e-05/0.2304, allocations: 24 kB / 446.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2304, allocations: 12 kB / 446.2 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007446/0.2311, allocations: 439.7 kB / 446.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003774/0.2349, allocations: 2.876 MB / 449.5 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008963/0.2358, allocations: 398.5 kB / 449.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005925/0.2364, allocations: 296.7 kB / 450.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.2364, allocations: 4 kB / 450.2 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2365, allocations: 34.56 kB / 450.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.2365, allocations: 0 / 450.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001704/0.2382, allocations: 0.776 MB / 451 MB, free: 1.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.2383, allocations: 273 kB / 451.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002529/0.2408, allocations: 2.25 MB / 453.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.2409, allocations: 33.7 kB / 453.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005306/0.2414, allocations: 0.6396 MB / 454.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.541e-05/0.2415, allocations: 115.1 kB / 454.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.2416, allocations: 78.02 kB / 454.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.2418, allocations: 325.9 kB / 454.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.2421, allocations: 160.7 kB / 454.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000431/0.2425, allocations: 296.8 kB / 455.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006464/0.2432, allocations: 392.3 kB / 455.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.2432, allocations: 7.938 kB / 455.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00122/0.2444, allocations: 0.6418 MB / 456.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.2444, allocations: 15.88 kB / 456.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2444, allocations: 0 / 456.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002706/0.2447, allocations: 68.94 kB / 456.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003494/0.245, allocations: 87.88 kB / 456.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.2468, allocations: 1.775 MB / 458.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.2472, allocations: 55.84 kB / 458.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.2472, allocations: 12.12 kB / 458.2 MB, free: 9.977 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0005612/0.2478, allocations: 489.5 kB / 458.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.248, allocations: 143.1 kB / 458.8 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001974/0.2482, allocations: 165.5 kB / 458.9 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2482, allocations: 4 kB / 458.9 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2482, allocations: 7.984 kB / 459 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2482, allocations: 0 / 459 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002452/0.2506, allocations: 1.665 MB / 460.6 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2506, allocations: 0 / 460.6 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003183/0.2509, allocations: 71.94 kB / 460.7 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001632/0.2511, allocations: 56.83 kB / 460.7 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.2511, allocations: 8 kB / 460.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.2526, allocations: 1.717 MB / 462.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.2526, allocations: 8.031 kB / 462.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.254, allocations: 0.7981 MB / 463.3 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004199/0.2544, allocations: 340.2 kB / 463.6 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.2545, allocations: 16 kB / 463.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.255, allocations: 43.95 kB / 463.7 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.929e-05/0.255, allocations: 27.97 kB / 463.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.2551, allocations: 11.98 kB / 463.7 MB, free: 4.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001925/0.257, allocations: 1.608 MB / 465.3 MB, free: 2.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.257, allocations: 0 / 465.3 MB, free: 2.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006461/0.2576, allocations: 211.7 kB / 465.5 MB, free: 2.344 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.003193/0.2608, allocations: 1.715 MB / 467.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009926/0.2618, allocations: 490.5 kB / 467.7 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2618, allocations: 4.469 kB / 467.7 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005251/0.2623, allocations: 300.2 kB / 468 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008281/0.2632, allocations: 209.2 kB / 468.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/0.2812, allocations: 13.92 MB / 482.1 MB, free: 1.605 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009012/0.2821, allocations: 1.249 MB / 483.4 MB, free: 340 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004737/0.2826, allocations: 227.8 kB / 483.6 MB, free: 108 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005822/0.2831, allocations: 479.4 kB / 484.1 MB, free: 15.63 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2831, allocations: 0 / 484.1 MB, free: 15.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06456/0.3477, allocations: 28.12 MB / 0.5002 GB, free: 3.695 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.9, allocations: 6 kB / 0.5002 GB, free: 3.691 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.147511194001709]