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.0008903/0.0008903, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001366/0.001366, allocations: 177 kB / 23.36 MB, free: 1.133 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.8937/0.8937, allocations: 177.2 MB / 203.8 MB, free: 5.465 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.1052/0.1052, allocations: 17.47 MB / 277.7 MB, free: 11.41 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 1.223e-06/1.223e-06, allocations: 0 / 300.7 MB, free: 1.758 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362e-05/1.484e-05, allocations: 3.25 kB / 300.7 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008655/0.00867, allocations: 11.3 MB / 312 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02421/0.03288, allocations: 31.12 MB / 343.2 MB, free: 9.562 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.03448, allocations: 35.75 kB / 343.2 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.03585, allocations: 0.6626 MB / 343.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005879/0.04173, allocations: 2.827 MB / 346.7 MB, free: 6.012 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009461/0.05119, allocations: 4.279 MB / 351 MB, free: 1.707 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004175/0.05537, allocations: 3.538 MB / 354.5 MB, free: 14.15 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.05749, allocations: 1.771 MB / 356.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003252/0.06074, allocations: 2.422 MB / 358.7 MB, free: 9.895 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001944/0.06269, allocations: 1.567 MB / 360.3 MB, free: 8.324 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006154/0.0633, allocations: 320 kB / 360.6 MB, free: 8.012 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007061/0.07036, allocations: 3.318 MB / 363.9 MB, free: 4.688 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000589/0.07095, allocations: 0.7866 MB / 364.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.07206, allocations: 1.166 MB / 365.8 MB, free: 2.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.08233, allocations: 6.44 MB / 372.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.08234, allocations: 4 kB / 372.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.08234, allocations: 0 / 372.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.08237, allocations: 0 / 372.3 MB, free: 12.26 MB / 346.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.003807/0.08617, allocations: 3.629 MB / 375.9 MB, free: 8.586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.0862, allocations: 12.03 kB / 375.9 MB, free: 8.574 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.08782, allocations: 0.9578 MB / 376.9 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.08911, allocations: 0.9718 MB / 377.9 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004119/0.08952, allocations: 304.6 kB / 378.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.0898, allocations: 276.2 kB / 378.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.09187, allocations: 2.305 MB / 380.7 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.0919, allocations: 0 / 380.7 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.09206, allocations: 112 kB / 380.8 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/0.09209, allocations: 64 kB / 380.9 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/0.09405, allocations: 1.921 MB / 382.8 MB, free: 1.504 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.007385/0.1014, allocations: 5.912 MB / 388.7 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/0.1036, allocations: 2.263 MB / 391 MB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005551/0.1041, allocations: 0.5867 MB / 391.6 MB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006876/0.111, allocations: 4.999 MB / 396.6 MB, free: 3.566 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1111, allocations: 52.56 kB / 396.6 MB, free: 3.508 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004188/0.1115, allocations: 218.6 kB / 396.8 MB, free: 3.293 MB / 362.7 MB Notification: Performance of pre-optimization done (n=177): time 3.256e-06/0.1115, allocations: 0 / 396.8 MB, free: 3.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=251): time 0.01873/0.1302, allocations: 9.049 MB / 405.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.1302, allocations: 77.41 kB / 406 MB, free: 10.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009335/0.1312, allocations: 1.025 MB / 407 MB, free: 9.062 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.1313, allocations: 73.7 kB / 407.1 MB, free: 8.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000404/0.1317, allocations: 1.053 MB / 408.1 MB, free: 7.918 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004734/0.1322, allocations: 0.91 MB / 409 MB, free: 7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004828/0.1327, allocations: 0.5572 MB / 409.6 MB, free: 6.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.014e-05/0.1327, allocations: 305.1 kB / 409.9 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.1332, allocations: 406.2 kB / 410.3 MB, free: 5.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008182/0.134, allocations: 1.299 MB / 411.6 MB, free: 4.039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.1359, allocations: 2.096 MB / 413.7 MB, free: 1.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/0.1359, allocations: 12 kB / 413.7 MB, free: 1.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.00346/0.1393, allocations: 2.334 MB / 416 MB, free: 15.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.1394, allocations: 19.94 kB / 416 MB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.714e-05/0.1394, allocations: 28 kB / 416.1 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002946/0.1423, allocations: 1.17 MB / 417.2 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.1434, allocations: 0.6474 MB / 417.9 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004727/0.1482, allocations: 5.753 MB / 423.6 MB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.1492, allocations: 92 kB / 423.7 MB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.1494, allocations: 143.9 kB / 423.9 MB, free: 6.965 MB / 394.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.0005737/0.1499, allocations: 311.7 kB / 424.2 MB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002858/0.1502, allocations: 195.8 kB / 424.4 MB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003515/0.1537, allocations: 2.253 MB / 426.6 MB, free: 4.156 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.1538, allocations: 27.94 kB / 426.6 MB, free: 4.129 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.1538, allocations: 7.984 kB / 426.7 MB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.1538, allocations: 11.95 kB / 426.7 MB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005268/0.159, allocations: 3.479 MB / 430.1 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.159, allocations: 0 / 430.1 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008356/0.1599, allocations: 431.8 kB / 430.6 MB, free: 88 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002755/0.1626, allocations: 1.082 MB / 431.6 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.1628, allocations: 91.94 kB / 431.7 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003917/0.1667, allocations: 5.463 MB / 437.2 MB, free: 9.141 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1667, allocations: 4 kB / 437.2 MB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003831/0.1705, allocations: 2.651 MB / 439.9 MB, free: 6.336 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.1708, allocations: 166.6 kB / 440 MB, free: 6.172 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.171, allocations: 59.98 kB / 440.1 MB, free: 6.113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005479/0.1716, allocations: 48 kB / 440.1 MB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002951/0.1719, allocations: 241.4 kB / 440.4 MB, free: 5.828 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/0.172, allocations: 87.94 kB / 440.4 MB, free: 5.742 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003443/0.1723, allocations: 465 kB / 440.9 MB, free: 5.281 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1723, allocations: 4 kB / 440.9 MB, free: 5.277 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003072/0.1754, allocations: 1.438 MB / 442.3 MB, free: 3.836 MB / 410.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.002167/0.1776, allocations: 1.57 MB / 443.9 MB, free: 2.254 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1015/0.2791, allocations: 2.197 MB / 446.1 MB, free: 125.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-05/0.2791, allocations: 22.16 kB / 446.1 MB, free: 125.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001915/0.2811, allocations: 1.305 MB / 447.4 MB, free: 125.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.2823, allocations: 438.7 kB / 447.9 MB, free: 125.5 MB / 410.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005605/0.2879, allocations: 4.183 MB / 452 MB, free: 123.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.2883, allocations: 432 kB / 452.5 MB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001267/0.2896, allocations: 487.3 kB / 452.9 MB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/0.2906, allocations: 0.6378 MB / 453.6 MB, free: 123.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.984e-06/0.2906, allocations: 0 / 453.6 MB, free: 123.6 MB / 410.7 MB Notification: Performance of Templates: time 0.05062/0.3413, allocations: 60.41 MB / 0.5019 GB, free: 76.42 MB / 410.7 MB " [Timeout remaining time 660] 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.239818618632853]