Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001486/0.00251, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001449/0.002484, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.012/1.012, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09942/1.112, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.1-master/package.mo): time 0.1026/0.1026, allocations: 17.45 MB / 261.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01923/0.1218, allocations: 6.97 MB / 268.6 MB, free: 6.285 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.1-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 269.9 MB, free: 4.984 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.1e-05/2.23e-05, allocations: 2.312 kB / 269.9 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.1316/0.1317, allocations: 11.41 MB / 281.3 MB, free: 15.63 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02707/0.1587, allocations: 31.36 MB / 312.6 MB, free: 7.539 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.1608, allocations: 35.75 kB / 312.7 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.1625, allocations: 0.6664 MB / 313.3 MB, free: 6.832 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007464/0.1699, allocations: 2.776 MB / 316.1 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01/0.1799, allocations: 4.204 MB / 320.3 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004165/0.1841, allocations: 3.507 MB / 323.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001965/0.1861, allocations: 1.783 MB / 325.6 MB, free: 10.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002837/0.1889, allocations: 2.551 MB / 328.2 MB, free: 7.867 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001971/0.1909, allocations: 1.567 MB / 329.7 MB, free: 6.297 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000607/0.1915, allocations: 323.9 kB / 330 MB, free: 5.98 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007331/0.1988, allocations: 3.462 MB / 333.5 MB, free: 2.512 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006758/0.1995, allocations: 0.5452 MB / 334.1 MB, free: 1.965 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001576/0.2011, allocations: 0.9086 MB / 335 MB, free: 1.055 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.2129, allocations: 5.864 MB / 340.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.983e-05/0.2129, allocations: 0 / 340.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2129, allocations: 0 / 340.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001116/0.213, allocations: 0 / 340.8 MB, free: 11.17 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.005686/0.2187, allocations: 4.625 MB / 345.5 MB, free: 6.496 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2187, allocations: 15.97 kB / 345.5 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001904/0.2206, allocations: 1.025 MB / 346.5 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.2221, allocations: 0.9757 MB / 347.5 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.2223, allocations: 312.6 kB / 347.8 MB, free: 4.098 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002924/0.2226, allocations: 272.3 kB / 348 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.2251, allocations: 2.298 MB / 350.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.2251, allocations: 0 / 350.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/0.2253, allocations: 108 kB / 350.4 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-05/0.2253, allocations: 64 kB / 350.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002103/0.2274, allocations: 1.929 MB / 352.4 MB, free: 15.32 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008218/0.2356, allocations: 5.94 MB / 358.4 MB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.2378, allocations: 2.248 MB / 360.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005976/0.2384, allocations: 0.5905 MB / 361.2 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007477/0.2459, allocations: 4.827 MB / 366 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.2459, allocations: 56.5 kB / 366.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005259/0.2464, allocations: 214.6 kB / 366.3 MB, free: 1.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=177): time 4.809e-06/0.2464, allocations: 4 kB / 366.3 MB, free: 1.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=248): time 0.02229/0.2687, allocations: 10.26 MB / 376.6 MB, free: 6.961 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.2688, allocations: 77.41 kB / 376.6 MB, free: 6.875 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.27, allocations: 1.018 MB / 377.7 MB, free: 5.836 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.2702, allocations: 65.7 kB / 377.7 MB, free: 5.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004837/0.2707, allocations: 1.056 MB / 378.8 MB, free: 4.695 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006429/0.2713, allocations: 0.8985 MB / 379.7 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005167/0.2718, allocations: 0.5571 MB / 380.2 MB, free: 3.223 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.2719, allocations: 309.1 kB / 380.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005348/0.2724, allocations: 410.1 kB / 380.9 MB, free: 2.512 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009133/0.2734, allocations: 1.291 MB / 382.2 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00198/0.2753, allocations: 2.174 MB / 384.4 MB, free: 14.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/0.2754, allocations: 8 kB / 384.4 MB, free: 14.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=388) (initialization): time 0.00367/0.279, allocations: 2.348 MB / 386.8 MB, free: 11.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.2791, allocations: 16 kB / 386.8 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.2791, allocations: 28 kB / 386.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003162/0.2822, allocations: 1.179 MB / 388 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.2838, allocations: 0.7763 MB / 388.8 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005398/0.2892, allocations: 5.796 MB / 394.6 MB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.2907, allocations: 96 kB / 394.7 MB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000264/0.291, allocations: 139.9 kB / 394.8 MB, free: 3.484 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 333 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007041/0.2917, allocations: 315.6 kB / 395.1 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.2921, allocations: 187.8 kB / 395.3 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003823/0.2959, allocations: 2.237 MB / 397.5 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.2959, allocations: 28 kB / 397.5 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.2959, allocations: 4 kB / 397.5 MB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.296, allocations: 11.95 kB / 397.6 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005825/0.3018, allocations: 3.428 MB / 401 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3018, allocations: 4 kB / 401 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.3029, allocations: 0.5386 MB / 401.5 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004162/0.3033, allocations: 170.6 kB / 401.7 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/0.3064, allocations: 1.088 MB / 402.8 MB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002569/0.3066, allocations: 91.94 kB / 402.9 MB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0046/0.3112, allocations: 5.475 MB / 408.3 MB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/0.3112, allocations: 7.938 kB / 408.4 MB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004632/0.3159, allocations: 2.654 MB / 411 MB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004201/0.3163, allocations: 56 kB / 411.1 MB, free: 2.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007411/0.317, allocations: 51.98 kB / 411.1 MB, free: 2.523 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/0.3174, allocations: 233.5 kB / 411.3 MB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.3175, allocations: 87.94 kB / 411.4 MB, free: 2.207 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003832/0.3179, allocations: 457.1 kB / 411.9 MB, free: 1.754 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3179, allocations: 0 / 411.9 MB, free: 1.754 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003665/0.3216, allocations: 1.438 MB / 413.3 MB, free: 320 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002549/0.3241, allocations: 1.579 MB / 414.9 MB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003146/0.3273, allocations: 2.222 MB / 417.1 MB, free: 12.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-05/0.3273, allocations: 53.61 kB / 417.2 MB, free: 12.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.329, allocations: 1.479 MB / 418.6 MB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002469/0.3315, allocations: 2.389 MB / 421 MB, free: 8.082 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/0.3483, allocations: 4.298 MB / 425.3 MB, free: 3.691 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005942/0.3489, allocations: 436.2 kB / 425.8 MB, free: 3.238 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002015/0.3509, allocations: 483.8 kB / 426.2 MB, free: 2.777 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/0.3526, allocations: 0.6316 MB / 426.9 MB, free: 2.152 MB / 410.7 MB Notification: Performance of SimCode: time 2.295e-06/0.3526, allocations: 0 / 426.9 MB, free: 2.152 MB / 410.7 MB Notification: Performance of Templates: time 0.1835/0.5361, allocations: 60.63 MB / 487.5 MB, free: 84 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.sim & ./Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.385829271748662]