Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001201/0.001201, allocations: 105 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.00132/0.00132, allocations: 216.9 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.287/1.287, allocations: 230.5 MB / 256.4 MB, free: 8.254 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.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",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.001779/0.001779, allocations: 67.83 kB / 376.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2144, allocations: 53.32 MB / 429.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.0042/0.2186, allocations: 3.028 MB / 432.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2199, allocations: 0.7556 MB / 433.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.22, allocations: 4 kB / 433.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.2202, allocations: 63.38 kB / 433.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.2205, allocations: 107.1 kB / 433.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.2208, allocations: 103.9 kB / 433.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004218/0.2212, allocations: 418.2 kB / 433.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.2215, allocations: 141.8 kB / 434 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.2216, allocations: 167.4 kB / 434.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.2219, allocations: 179.2 kB / 434.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.656e-05/0.2219, allocations: 40 kB / 434.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.2221, allocations: 59.92 kB / 434.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.2222, allocations: 107.7 kB / 434.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.2224, allocations: 207 kB / 434.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005368/0.2229, allocations: 0.5022 MB / 435.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2229, allocations: 4 kB / 435.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2229, allocations: 0 / 435.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.2229, allocations: 0 / 435.2 MB, free: 1.68 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.00155/0.2245, allocations: 0.7909 MB / 436 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2245, allocations: 8.031 kB / 436 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.259e-05/0.2246, allocations: 70.72 kB / 436.1 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.451e-05/0.2247, allocations: 40.7 kB / 436.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.2251, allocations: 350.7 kB / 436.5 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.2252, allocations: 25.03 kB / 436.5 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.296e-05/0.2252, allocations: 32.36 kB / 436.5 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005358/0.2258, allocations: 346 kB / 436.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2258, allocations: 4 kB / 436.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.2258, allocations: 12 kB / 436.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.2258, allocations: 8 kB / 436.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.2262, allocations: 238.4 kB / 437.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.2279, allocations: 1.292 MB / 438.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003548/0.2283, allocations: 174.5 kB / 438.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/0.2285, allocations: 116.8 kB / 438.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.2286, allocations: 0 / 438.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.2286, allocations: 42.83 kB / 438.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 9.32e-07/0.2286, allocations: 0 / 438.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004656/0.2291, allocations: 241.6 kB / 439 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.2291, allocations: 55.41 kB / 439 MB, free: 13.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/0.2295, allocations: 323 kB / 439.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.2295, allocations: 25.7 kB / 439.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.2296, allocations: 216.3 kB / 439.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/0.2297, allocations: 55.58 kB / 439.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.2298, allocations: 49.66 kB / 439.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2299, allocations: 334.8 kB / 440 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.23, allocations: 67.97 kB / 440.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.2302, allocations: 139.7 kB / 440.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.2304, allocations: 170.4 kB / 440.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2304, allocations: 0 / 440.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003712/0.2308, allocations: 249.3 kB / 440.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2308, allocations: 8 kB / 440.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2308, allocations: 7.875 kB / 440.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2308, allocations: 4 kB / 440.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.231, allocations: 43.97 kB / 440.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.231, allocations: 3.938 kB / 440.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.2314, allocations: 67.91 kB / 440.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.2314, allocations: 15.98 kB / 440.8 MB, free: 11.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.2315, allocations: 153.7 kB / 440.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.2316, allocations: 23.86 kB / 441 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003861/0.232, allocations: 199.7 kB / 441.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.232, allocations: 4 kB / 441.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.232, allocations: 0 / 441.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.232, allocations: 0 / 441.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007689/0.2328, allocations: 0.6359 MB / 441.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2328, allocations: 0 / 441.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.2329, allocations: 31.92 kB / 441.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.2329, allocations: 0 / 441.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2329, allocations: 0 / 441.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.2329, allocations: 4 kB / 441.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.233, allocations: 0 / 441.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004777/0.2334, allocations: 384.5 kB / 442.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.2335, allocations: 112.9 kB / 442.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.2336, allocations: 4 kB / 442.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.234, allocations: 59.86 kB / 442.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.2341, allocations: 79.94 kB / 442.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.2341, allocations: 7.938 kB / 442.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002434/0.2344, allocations: 237.9 kB / 442.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2344, allocations: 0 / 442.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.2347, allocations: 87.72 kB / 442.8 MB, free: 9.695 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007843/0.2355, allocations: 0.9141 MB / 443.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003314/0.2358, allocations: 175.8 kB / 443.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2358, allocations: 0 / 443.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.236, allocations: 99.88 kB / 444 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.2364, allocations: 61.31 kB / 444 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/0.2402, allocations: 3.039 MB / 447.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.2406, allocations: 0.7753 MB / 447.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.2408, allocations: 42.28 kB / 447.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.2409, allocations: 103.4 kB / 448 MB, free: 4.305 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2409, allocations: 0 / 448 MB, free: 4.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03107/0.272, allocations: 7.407 MB / 455.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.67, allocations: 8.188 kB / 455.4 MB, free: 13.03 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.788977007003268]