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.001321/0.001321, allocations: 93.06 kB / 19.65 MB, free: 276 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.0017/0.0017, allocations: 165 kB / 23.02 MB, free: 1.551 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.9254/0.9254, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.08994/0.08994, allocations: 17.47 MB / 277.4 MB, free: 11.58 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.044e-06/2.044e-06, allocations: 3.938 kB / 353.5 MB, free: 9.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.549e-05, allocations: 12.58 kB / 353.6 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008769/0.008795, allocations: 11.48 MB / 365 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02376/0.03256, allocations: 31.47 MB / 396.5 MB, free: 14.74 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.03425, allocations: 35.75 kB / 396.5 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.03556, allocations: 0.6626 MB / 397.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005565/0.04112, allocations: 2.808 MB / 400 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009148/0.05027, allocations: 4.236 MB / 404.2 MB, free: 6.945 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003392/0.05366, allocations: 3.533 MB / 407.8 MB, free: 3.398 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001464/0.05513, allocations: 1.756 MB / 409.5 MB, free: 1.602 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1397/0.1949, allocations: 2.36 MB / 411.9 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002955/0.1978, allocations: 1.556 MB / 413.4 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008742/0.1987, allocations: 322.8 kB / 413.8 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008717/0.2074, allocations: 3.322 MB / 417.1 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007276/0.2081, allocations: 0.7733 MB / 417.9 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002037/0.2102, allocations: 1.164 MB / 419 MB, free: 22.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.2208, allocations: 6.39 MB / 425.4 MB, free: 22.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2208, allocations: 0 / 425.4 MB, free: 22.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2208, allocations: 2.938 kB / 425.4 MB, free: 22.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.851e-05/0.2208, allocations: 0 / 425.4 MB, free: 22.15 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.004697/0.2255, allocations: 3.755 MB / 429.2 MB, free: 20.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2256, allocations: 9.594 kB / 429.2 MB, free: 20.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00229/0.2279, allocations: 1.064 MB / 430.2 MB, free: 20.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.2298, allocations: 1.465 MB / 431.7 MB, free: 19.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.2299, allocations: 310.8 kB / 432 MB, free: 19.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003504/0.2303, allocations: 267.8 kB / 432.3 MB, free: 19.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002912/0.2332, allocations: 2.5 MB / 434.8 MB, free: 19.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.2332, allocations: 0 / 434.8 MB, free: 19.33 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001637/0.2334, allocations: 107.7 kB / 434.9 MB, free: 19.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.254e-05/0.2334, allocations: 64.34 kB / 434.9 MB, free: 19.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.2362, allocations: 2.545 MB / 437.5 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.007772/0.244, allocations: 7.563 MB / 445.1 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.2463, allocations: 2.531 MB / 447.6 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008281/0.2471, allocations: 0.8041 MB / 448.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006727/0.2539, allocations: 5.647 MB / 454 MB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.2539, allocations: 51.39 kB / 454.1 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004161/0.2543, allocations: 226 kB / 454.3 MB, free: 5.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 3.446e-06/0.2543, allocations: 0 / 454.3 MB, free: 5.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.02068/0.275, allocations: 9.392 MB / 463.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.275, allocations: 85.34 kB / 463.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.2764, allocations: 1.132 MB / 464.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.2765, allocations: 69.7 kB / 465 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007637/0.2773, allocations: 1.241 MB / 466.2 MB, free: 9.938 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007305/0.278, allocations: 0.8974 MB / 467.1 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008362/0.2789, allocations: 0.5683 MB / 467.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.279, allocations: 476.8 kB / 468.2 MB, free: 8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.2802, allocations: 0.5994 MB / 468.8 MB, free: 7.398 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.2817, allocations: 1.849 MB / 470.6 MB, free: 5.027 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002575/0.2842, allocations: 2.741 MB / 473.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.2842, allocations: 8 kB / 473.3 MB, free: 1.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005269/0.2895, allocations: 3.229 MB / 476.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.2895, allocations: 23.97 kB / 476.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-05/0.2896, allocations: 28 kB / 476.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003435/0.293, allocations: 1.207 MB / 477.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.2942, allocations: 0.6577 MB / 478.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005946/0.3002, allocations: 8.203 MB / 486.7 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3012, allocations: 104 kB / 486.8 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/0.3013, allocations: 167.9 kB / 487 MB, free: 4.02 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.0005691/0.3019, allocations: 350.7 kB / 487.3 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.3022, allocations: 274.7 kB / 487.6 MB, free: 3.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004683/0.3069, allocations: 2.951 MB / 490.5 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.3069, allocations: 24 kB / 490.5 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3069, allocations: 4 kB / 490.6 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.307, allocations: 11.95 kB / 490.6 MB, free: 400 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006626/0.3136, allocations: 4.574 MB / 495.1 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.3136, allocations: 4.344 kB / 495.1 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009165/0.3145, allocations: 436.1 kB / 495.6 MB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003119/0.3176, allocations: 1.12 MB / 496.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.3178, allocations: 99.88 kB / 496.8 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005061/0.3228, allocations: 7.878 MB / 0.4928 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3228, allocations: 7.375 kB / 0.4928 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005408/0.3282, allocations: 3.544 MB / 0.4963 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.3285, allocations: 170.7 kB / 0.4965 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.3286, allocations: 56 kB / 0.4965 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005808/0.3292, allocations: 63.98 kB / 0.4966 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/0.3295, allocations: 241.3 kB / 0.4968 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.3297, allocations: 111.9 kB / 0.4969 GB, free: 13.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005205/0.3302, allocations: 0.6069 MB / 0.4975 GB, free: 12.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3302, allocations: 0 / 0.4975 GB, free: 12.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003121/0.3333, allocations: 1.446 MB / 0.4989 GB, free: 11.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.002216/0.3355, allocations: 1.5 MB / 0.5004 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00379/0.3393, allocations: 2.784 MB / 0.5031 GB, free: 7.398 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3393, allocations: 192 / 0.5031 GB, free: 7.398 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.3412, allocations: 1.701 MB / 0.5048 GB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.3423, allocations: 443 kB / 0.5052 GB, free: 5.242 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.005816/0.3481, allocations: 4.357 MB / 0.5094 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.3484, allocations: 440.3 kB / 0.5099 GB, free: 348 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00121/0.3496, allocations: 0.4886 MB / 0.5103 GB, free: 15.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005344/0.3501, allocations: 349.8 kB / 0.5107 GB, free: 15.51 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3501, allocations: 3.469 kB / 0.5107 GB, free: 15.51 MB / 410.7 MB Notification: Performance of Templates: time 0.1583/0.5084, allocations: 53.44 MB / 0.5629 GB, free: 155 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.708974944427609]