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.001052/0.001052, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.001341/0.001341, allocations: 173 kB / 23.49 MB, free: 1.062 MB / 18.57 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 0.9902/0.9902, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.09501/0.09501, allocations: 17.46 MB / 277.7 MB, free: 11.63 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 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 2.184e-06/2.184e-06, allocations: 0 / 353.6 MB, free: 10.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.72e-05/2.939e-05, allocations: 6.25 kB / 353.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01238/0.01241, allocations: 11.53 MB / 365.1 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.03989, allocations: 33.88 MB / 399 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.04146, allocations: 39.69 kB / 399 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001442/0.04291, allocations: 0.6897 MB / 399.7 MB, free: 11.86 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006838/0.04974, allocations: 2.854 MB / 402.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01017/0.05992, allocations: 4.635 MB / 407.2 MB, free: 4.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003778/0.06369, allocations: 3.529 MB / 410.7 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1418/0.2055, allocations: 1.744 MB / 412.5 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004392/0.2099, allocations: 2.365 MB / 414.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003165/0.2131, allocations: 1.557 MB / 416.4 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.2141, allocations: 325.2 kB / 416.7 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00894/0.2231, allocations: 3.576 MB / 420.3 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.2244, allocations: 0.7785 MB / 421.1 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001942/0.2263, allocations: 1.164 MB / 422.2 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0148/0.2411, allocations: 6.706 MB / 428.9 MB, free: 19.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2411, allocations: 0 / 428.9 MB, free: 19.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2411, allocations: 3.938 kB / 428.9 MB, free: 19.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001057/0.2412, allocations: 3.469 kB / 428.9 MB, free: 19.31 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.005308/0.2465, allocations: 3.815 MB / 432.8 MB, free: 17.61 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2466, allocations: 10.38 kB / 432.8 MB, free: 17.61 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00216/0.2487, allocations: 1.052 MB / 433.8 MB, free: 17.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.2506, allocations: 1.473 MB / 435.3 MB, free: 16.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.2508, allocations: 311 kB / 435.6 MB, free: 16.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002899/0.2511, allocations: 271 kB / 435.9 MB, free: 16.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/0.2542, allocations: 2.5 MB / 438.4 MB, free: 16.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.766e-05/0.2543, allocations: 0 / 438.4 MB, free: 16.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002378/0.2545, allocations: 109.8 kB / 438.5 MB, free: 16.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.547e-05/0.2546, allocations: 65.66 kB / 438.5 MB, free: 16.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00402/0.2586, allocations: 2.544 MB / 441.1 MB, free: 15.71 MB / 330.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.01042/0.269, allocations: 7.555 MB / 448.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003078/0.2721, allocations: 2.535 MB / 451.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.2732, allocations: 0.8002 MB / 452 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008605/0.2818, allocations: 5.668 MB / 457.6 MB, free: 1.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.2818, allocations: 55.39 kB / 457.7 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006915/0.2825, allocations: 214 kB / 457.9 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 5.009e-06/0.2825, allocations: 4 kB / 457.9 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.02707/0.3096, allocations: 9.382 MB / 467.3 MB, free: 7.594 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.3097, allocations: 81.41 kB / 467.4 MB, free: 7.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.3111, allocations: 1.139 MB / 468.5 MB, free: 6.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.3113, allocations: 65.7 kB / 468.6 MB, free: 6.258 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007156/0.312, allocations: 1.246 MB / 469.8 MB, free: 5.008 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007325/0.3127, allocations: 0.9018 MB / 470.7 MB, free: 4.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007079/0.3134, allocations: 0.5644 MB / 471.3 MB, free: 3.543 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3135, allocations: 480.8 kB / 471.8 MB, free: 3.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.3147, allocations: 0.5949 MB / 472.3 MB, free: 2.477 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/0.3166, allocations: 1.851 MB / 474.2 MB, free: 104 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/0.3199, allocations: 2.745 MB / 476.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.99e-05/0.3199, allocations: 8 kB / 476.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005614/0.3256, allocations: 3.222 MB / 480.2 MB, free: 9.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.3256, allocations: 20.31 kB / 480.2 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.423e-05/0.3256, allocations: 32 kB / 480.2 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003622/0.3293, allocations: 1.209 MB / 481.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/0.3308, allocations: 0.6534 MB / 482.1 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006513/0.3373, allocations: 8.213 MB / 490.3 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.3387, allocations: 95.98 kB / 490.4 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002367/0.339, allocations: 171.9 kB / 490.6 MB, free: 15.09 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 (341): * Single equations (assignments): 336 * 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.0007322/0.3397, allocations: 347 kB / 490.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004337/0.3401, allocations: 270.7 kB / 491.2 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005469/0.3456, allocations: 2.952 MB / 494.1 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/0.3456, allocations: 24 kB / 494.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.3456, allocations: 4 kB / 494.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.3456, allocations: 15.94 kB / 494.2 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007865/0.3535, allocations: 4.578 MB / 498.7 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.3535, allocations: 0 / 498.7 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009866/0.3545, allocations: 437.1 kB / 499.2 MB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00332/0.3578, allocations: 1.128 MB / 0.4886 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/0.358, allocations: 99.88 kB / 0.4887 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005729/0.3637, allocations: 7.87 MB / 0.4963 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.3637, allocations: 7.844 kB / 0.4964 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006142/0.3699, allocations: 3.549 MB / 0.4998 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.3702, allocations: 174.6 kB / 0.5 GB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000206/0.3705, allocations: 56 kB / 0.5 GB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006428/0.3711, allocations: 59.98 kB / 0.5001 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003759/0.3715, allocations: 245.1 kB / 0.5003 GB, free: 8.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.3716, allocations: 111.9 kB / 0.5004 GB, free: 8.609 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005623/0.3722, allocations: 0.6069 MB / 0.501 GB, free: 8 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3722, allocations: 4 kB / 0.501 GB, free: 7.996 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003076/0.3753, allocations: 1.492 MB / 0.5025 GB, free: 6.5 MB / 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 (222): * Single equations (assignments): 217 * 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.002389/0.3776, allocations: 1.607 MB / 0.5041 GB, free: 5.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004129/0.3818, allocations: 2.776 MB / 0.5068 GB, free: 2.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3818, allocations: 3.938 kB / 0.5068 GB, free: 2.316 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.3838, allocations: 1.702 MB / 0.5084 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.3851, allocations: 445.6 kB / 0.5089 GB, free: 156 kB / 394.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006148/0.3913, allocations: 4.349 MB / 0.5131 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/0.3919, allocations: 444.3 kB / 0.5135 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001257/0.3931, allocations: 0.4963 MB / 0.514 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005677/0.3937, allocations: 339.6 kB / 0.5143 GB, free: 10.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.804e-06/0.3937, allocations: 4 kB / 0.5143 GB, free: 10.43 MB / 410.7 MB Notification: Performance of Templates: time 0.1755/0.5692, allocations: 54.83 MB / 0.5679 GB, free: 159.5 MB / 442.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.817363488022238]