Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 120.3 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 191.7 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 248.5 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08642/0.08642, allocations: 15.54 MB / 318.9 MB, free: 13.62 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 61.17 kB / 446.1 MB, free: 47.9 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.09051, allocations: 56.56 MB / 0.4909 GB, free: 20.63 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.009226/0.09973, allocations: 11.73 MB / 0.5023 GB, free: 11.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03603/0.1358, allocations: 33.83 MB / 0.5354 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00204/0.1378, allocations: 23.88 kB / 0.5354 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.1401, allocations: 0.7599 MB / 0.5361 GB, free: 8.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008493/0.1486, allocations: 2.782 MB / 0.5388 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01175/0.1603, allocations: 4.446 MB / 0.5432 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005388/0.1657, allocations: 3.418 MB / 0.5465 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.1679, allocations: 1.731 MB / 0.5482 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.17, allocations: 1.652 MB / 0.5498 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002707/0.1727, allocations: 1.892 MB / 0.5517 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005498/0.1732, allocations: 320 kB / 0.552 GB, free: 8.625 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01131/0.1845, allocations: 3.779 MB / 0.5557 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.1857, allocations: 0.7634 MB / 0.5564 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002174/0.1878, allocations: 1.583 MB / 0.558 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.2047, allocations: 7.288 MB / 0.5651 GB, free: 11.17 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2047, allocations: 0 / 0.5651 GB, free: 11.17 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2047, allocations: 4 kB / 0.5651 GB, free: 11.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.238e-05/0.2048, allocations: 0 / 0.5651 GB, free: 11.16 MB / 430.1 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.007909/0.2127, allocations: 3.788 MB / 0.5688 GB, free: 7.305 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2127, allocations: 11.97 kB / 0.5688 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002566/0.2153, allocations: 0.6269 MB / 0.5694 GB, free: 6.664 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002538/0.2178, allocations: 1.502 MB / 0.5709 GB, free: 5.113 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.218, allocations: 268.9 kB / 0.5711 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004536/0.2185, allocations: 267.9 kB / 0.5714 GB, free: 4.574 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005352/0.2239, allocations: 3.132 MB / 0.5744 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/0.2239, allocations: 3.938 kB / 0.5744 GB, free: 1.367 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/0.2242, allocations: 108 kB / 0.5745 GB, free: 1.262 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.869e-05/0.2242, allocations: 64 kB / 0.5746 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006455/0.2307, allocations: 3.858 MB / 0.5784 GB, free: 13.33 MB / 446.1 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.017/0.2477, allocations: 9.941 MB / 0.5881 GB, free: 3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005079/0.2527, allocations: 3.329 MB / 0.5913 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002025/0.2548, allocations: 1.228 MB / 0.5925 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0157/0.2705, allocations: 10.9 MB / 0.6032 GB, free: 2.242 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.2705, allocations: 56.56 kB / 0.6032 GB, free: 2.18 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009523/0.2715, allocations: 238.4 kB / 0.6035 GB, free: 1.945 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.797e-06/0.2715, allocations: 0 / 0.6035 GB, free: 1.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.2449/0.5164, allocations: 12.29 MB / 0.6155 GB, free: 98.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.5164, allocations: 76.53 kB / 0.6155 GB, free: 98.34 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.518, allocations: 1.17 MB / 0.6167 GB, free: 97.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003259/0.5183, allocations: 71.84 kB / 0.6168 GB, free: 97.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000571/0.5189, allocations: 1.186 MB / 0.6179 GB, free: 97.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006205/0.5195, allocations: 0.9129 MB / 0.6188 GB, free: 96.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007366/0.5202, allocations: 0.5561 MB / 0.6193 GB, free: 96.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.971e-05/0.5203, allocations: 305 kB / 0.6196 GB, free: 95.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.5219, allocations: 1.007 MB / 0.6206 GB, free: 95.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.5239, allocations: 1.91 MB / 0.6225 GB, free: 94.04 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/0.5275, allocations: 3.198 MB / 0.6256 GB, free: 91.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/0.5275, allocations: 7.875 kB / 0.6256 GB, free: 91.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.008817/0.5363, allocations: 4.119 MB / 0.6296 GB, free: 89.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.5363, allocations: 17.25 kB / 0.6297 GB, free: 89.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.696e-05/0.5364, allocations: 32.78 kB / 0.6297 GB, free: 89.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005451/0.5418, allocations: 1.362 MB / 0.631 GB, free: 89.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/0.5441, allocations: 0.6523 MB / 0.6317 GB, free: 89.06 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009/0.5531, allocations: 8.267 MB / 0.6397 GB, free: 80.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002262/0.5553, allocations: 104.8 kB / 0.6398 GB, free: 80.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003/0.5556, allocations: 167.9 kB / 0.64 GB, free: 80.61 MB / 462.1 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.0009907/0.5566, allocations: 0.5164 MB / 0.6405 GB, free: 80.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004253/0.5571, allocations: 206.6 kB / 0.6407 GB, free: 79.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008563/0.5656, allocations: 3.867 MB / 0.6445 GB, free: 75.97 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.5656, allocations: 24 kB / 0.6445 GB, free: 75.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.5656, allocations: 8 kB / 0.6445 GB, free: 75.94 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-05/0.5657, allocations: 23.98 kB / 0.6445 GB, free: 75.92 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.577, allocations: 6.313 MB / 0.6507 GB, free: 69.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.577, allocations: 0 / 0.6507 GB, free: 69.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.5787, allocations: 431.4 kB / 0.6511 GB, free: 69.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005056/0.5837, allocations: 1.267 MB / 0.6523 GB, free: 67.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003382/0.5841, allocations: 100.7 kB / 0.6524 GB, free: 67.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007618/0.5917, allocations: 7.791 MB / 0.66 GB, free: 59.49 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5917, allocations: 4 kB / 0.66 GB, free: 59.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00973/0.6014, allocations: 5.039 MB / 0.665 GB, free: 54.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004991/0.6019, allocations: 265.8 kB / 0.6652 GB, free: 54.03 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002852/0.6022, allocations: 52 kB / 0.6653 GB, free: 53.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.6034, allocations: 59.98 kB / 0.6653 GB, free: 53.92 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004472/0.6039, allocations: 225.7 kB / 0.6655 GB, free: 53.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/0.6041, allocations: 123.9 kB / 0.6657 GB, free: 53.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007456/0.6048, allocations: 0.7272 MB / 0.6664 GB, free: 52.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.6048, allocations: 0 / 0.6664 GB, free: 52.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003473/0.6083, allocations: 1.498 MB / 0.6678 GB, free: 51.48 MB / 462.1 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.002282/0.6106, allocations: 1.521 MB / 0.6693 GB, free: 50.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00546/0.616, allocations: 3.335 MB / 0.6726 GB, free: 46.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.616, allocations: 0 / 0.6726 GB, free: 46.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002831/0.6189, allocations: 1.904 MB / 0.6744 GB, free: 44.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.6208, allocations: 401.2 kB / 0.6748 GB, free: 44.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006841/0.6276, allocations: 4.888 MB / 0.6796 GB, free: 39.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007426/0.6283, allocations: 1.591 MB / 0.6811 GB, free: 37.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.6294, allocations: 438.6 kB / 0.6816 GB, free: 37.38 MB / 462.1 MB Notification: Performance of SimCode: time 9.61e-07/0.6294, allocations: 8 kB / 0.6816 GB, free: 37.37 MB / 462.1 MB Notification: Performance of Templates: time 0.08812/0.7175, allocations: 89.58 MB / 0.769 GB, free: 11.86 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 11.670132718980312] Failed to read output from testmodel.py, exit status != 0: 0.8920907890424132 0.738084326 0.5304395239999999 Calling exit ...