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.0009282/0.0009282, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 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.0009346/0.0009346, allocations: 169 kB / 23.03 MB, free: 1.539 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 1.005/1.005, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.09881/0.09881, allocations: 17.46 MB / 277.4 MB, free: 11.54 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.574e-06/2.574e-06, allocations: 0 / 353.5 MB, free: 9.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.547e-05/3.804e-05, allocations: 2.312 kB / 353.5 MB, free: 9.824 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01321/0.01325, allocations: 11.49 MB / 365 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02543/0.03868, allocations: 31.48 MB / 396.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001766/0.04045, allocations: 39.69 kB / 396.6 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.04183, allocations: 0.6587 MB / 397.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006419/0.04824, allocations: 2.804 MB / 400 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009401/0.05765, allocations: 4.228 MB / 404.2 MB, free: 6.906 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004747/0.06239, allocations: 3.541 MB / 407.8 MB, free: 3.348 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001982/0.06437, allocations: 1.756 MB / 409.5 MB, free: 1.551 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1433/0.2077, allocations: 2.413 MB / 412 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003018/0.2107, allocations: 1.587 MB / 413.5 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009611/0.2117, allocations: 320.4 kB / 413.9 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009644/0.2213, allocations: 3.315 MB / 417.2 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.2225, allocations: 0.7827 MB / 418 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002342/0.2248, allocations: 1.168 MB / 419.1 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01295/0.2378, allocations: 6.44 MB / 425.6 MB, free: 22.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2378, allocations: 3.938 kB / 425.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2378, allocations: 2.906 kB / 425.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.588e-05/0.2379, allocations: 0 / 425.6 MB, free: 22.14 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.004642/0.2425, allocations: 3.777 MB / 429.3 MB, free: 20.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.2425, allocations: 7.188 kB / 429.4 MB, free: 20.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/0.2445, allocations: 1.01 MB / 430.4 MB, free: 20.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.246, allocations: 1.301 MB / 431.7 MB, free: 19.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.2462, allocations: 306.2 kB / 432 MB, free: 19.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.2465, allocations: 270.6 kB / 432.2 MB, free: 19.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.2493, allocations: 2.502 MB / 434.7 MB, free: 19.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.2493, allocations: 0 / 434.7 MB, free: 19.33 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001687/0.2495, allocations: 108.7 kB / 434.8 MB, free: 19.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/0.2495, allocations: 64.75 kB / 434.9 MB, free: 19.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002899/0.2524, allocations: 2.546 MB / 437.4 MB, free: 19.28 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.009298/0.2617, allocations: 7.568 MB / 445 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.2641, allocations: 2.534 MB / 447.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008539/0.265, allocations: 0.8041 MB / 448.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006915/0.2719, allocations: 5.656 MB / 454 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.2719, allocations: 55.39 kB / 454.1 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005972/0.2725, allocations: 217.9 kB / 454.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 4.289e-06/0.2725, allocations: 0 / 454.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.02583/0.2984, allocations: 9.401 MB / 463.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.2984, allocations: 77.41 kB / 463.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.2997, allocations: 1.136 MB / 464.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00018/0.2998, allocations: 65.7 kB / 465 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006694/0.3005, allocations: 1.243 MB / 466.2 MB, free: 9.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006598/0.3012, allocations: 0.9036 MB / 467.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007039/0.3019, allocations: 0.5644 MB / 467.7 MB, free: 8.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.302, allocations: 476.8 kB / 468.1 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.3031, allocations: 0.5993 MB / 468.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001994/0.3051, allocations: 1.846 MB / 470.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00326/0.3083, allocations: 2.744 MB / 473.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.056e-05/0.3084, allocations: 8 kB / 473.3 MB, free: 1.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.006947/0.3153, allocations: 3.229 MB / 476.6 MB, free: 14.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.3154, allocations: 20.88 kB / 476.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.474e-05/0.3154, allocations: 28 kB / 476.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004588/0.32, allocations: 1.21 MB / 477.8 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.3216, allocations: 0.6538 MB / 478.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006959/0.3285, allocations: 8.209 MB / 486.7 MB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.3301, allocations: 99.98 kB / 486.8 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002347/0.3303, allocations: 171.9 kB / 486.9 MB, free: 3.98 MB / 362.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.0007182/0.331, allocations: 350.7 kB / 487.3 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004449/0.3315, allocations: 274.7 kB / 487.6 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005034/0.3365, allocations: 2.945 MB / 490.5 MB, free: 408 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.3365, allocations: 28 kB / 490.5 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3365, allocations: 4 kB / 490.5 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.157e-05/0.3365, allocations: 15.89 kB / 490.5 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008499/0.345, allocations: 4.573 MB / 495.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.3451, allocations: 0 / 495.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3461, allocations: 441.3 kB / 495.5 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003485/0.3496, allocations: 1.12 MB / 496.7 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002955/0.3499, allocations: 103.9 kB / 496.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005968/0.3559, allocations: 7.871 MB / 0.4928 GB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3559, allocations: 4 kB / 0.4928 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006139/0.362, allocations: 3.545 MB / 0.4963 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003841/0.3624, allocations: 170.7 kB / 0.4964 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/0.3626, allocations: 56 kB / 0.4965 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006481/0.3633, allocations: 67.91 kB / 0.4966 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/0.3636, allocations: 241 kB / 0.4968 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.3638, allocations: 115.9 kB / 0.4969 GB, free: 13.51 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005697/0.3643, allocations: 0.6108 MB / 0.4975 GB, free: 12.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3643, allocations: 0 / 0.4975 GB, free: 12.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003073/0.3674, allocations: 1.438 MB / 0.4989 GB, free: 11.45 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.002299/0.3697, allocations: 1.501 MB / 0.5004 GB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004289/0.374, allocations: 2.78 MB / 0.5031 GB, free: 7.355 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.374, allocations: 0 / 0.5031 GB, free: 7.355 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001971/0.376, allocations: 1.705 MB / 0.5047 GB, free: 5.633 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.3773, allocations: 440 kB / 0.5052 GB, free: 5.203 MB / 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.006458/0.3837, allocations: 4.355 MB / 0.5094 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.3841, allocations: 440.3 kB / 0.5098 GB, free: 308 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00136/0.3854, allocations: 0.4925 MB / 0.5103 GB, free: 15.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005965/0.386, allocations: 354.5 kB / 0.5107 GB, free: 15.47 MB / 410.7 MB Notification: Performance of SimCode: time 1.744e-06/0.386, allocations: 0 / 0.5107 GB, free: 15.47 MB / 410.7 MB Notification: Performance of Templates: time 0.1962/0.5822, allocations: 59.63 MB / 0.5689 GB, free: 153.8 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.8768333569169044]