Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001387/0.001387, allocations: 80.59 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001499/0.001499, allocations: 170 kB / 22.46 MB, free: 5.355 MB / 14.72 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.444/1.444, allocations: 177.1 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1327/0.1327, allocations: 17.37 MB / 276.6 MB, free: 15.29 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.LeadAcidBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 412 MB, free: 4.43 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.839e-05, allocations: 9.594 kB / 412 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01386/0.01389, allocations: 10.2 MB / 422.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2303/0.2442, allocations: 29.71 MB / 451.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.2458, allocations: 36.44 kB / 451.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002061/0.2478, allocations: 0.6961 MB / 452.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007686/0.2555, allocations: 2.847 MB / 455.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01281/0.2683, allocations: 4.637 MB / 460.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006695/0.275, allocations: 3.545 MB / 463.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002793/0.2778, allocations: 1.673 MB / 465.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003539/0.2814, allocations: 2.36 MB / 467.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002489/0.2839, allocations: 1.503 MB / 469.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005803/0.2844, allocations: 323.2 kB / 469.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01038/0.2948, allocations: 3.577 MB / 473.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008599/0.2957, allocations: 0.7653 MB / 473.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001992/0.2977, allocations: 1.159 MB / 475 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01516/0.3128, allocations: 7.929 MB / 482.9 MB, free: 5.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3128, allocations: 6.891 kB / 482.9 MB, free: 5.965 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3128, allocations: 0 / 482.9 MB, free: 5.965 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.95e-05/0.3129, allocations: 0 / 482.9 MB, free: 5.965 MB / 366.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.006217/0.3191, allocations: 3.676 MB / 486.6 MB, free: 3.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3192, allocations: 11.22 kB / 486.6 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00247/0.3216, allocations: 0.627 MB / 487.2 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.3238, allocations: 1.438 MB / 488.7 MB, free: 1.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.324, allocations: 308.6 kB / 489 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003662/0.3243, allocations: 277.7 kB / 489.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005346/0.3297, allocations: 3.161 MB / 492.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.564e-05/0.3297, allocations: 0 / 492.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000298/0.33, allocations: 113 kB / 492.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.03e-05/0.3301, allocations: 64 kB / 492.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006809/0.3369, allocations: 3.809 MB / 496.4 MB, free: 9.668 MB / 382.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.01738/0.3543, allocations: 7.888 MB / 0.4925 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005022/0.3593, allocations: 2.781 MB / 0.4952 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002151/0.3615, allocations: 1.227 MB / 0.4964 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/0.3759, allocations: 6.008 MB / 0.5022 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.303e-05/0.3759, allocations: 51.56 kB / 0.5023 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001043/0.377, allocations: 232.7 kB / 0.5025 GB, free: 7.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.027e-06/0.377, allocations: 0 / 0.5025 GB, free: 7.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04947/0.4265, allocations: 11.84 MB / 0.5141 GB, free: 11.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.4265, allocations: 81.34 kB / 0.5142 GB, free: 11.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.4281, allocations: 1.122 MB / 0.5152 GB, free: 10.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003856/0.4285, allocations: 65.7 kB / 0.5153 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009431/0.4295, allocations: 1.177 MB / 0.5165 GB, free: 9.363 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/0.4306, allocations: 0.8922 MB / 0.5173 GB, free: 8.484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009603/0.4316, allocations: 0.5691 MB / 0.5179 GB, free: 7.906 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4317, allocations: 301.1 kB / 0.5182 GB, free: 7.609 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/0.4337, allocations: 1.013 MB / 0.5192 GB, free: 6.594 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002841/0.4366, allocations: 1.898 MB / 0.521 GB, free: 4.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005469/0.442, allocations: 3.201 MB / 0.5241 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.221e-05/0.4421, allocations: 8 kB / 0.5242 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01146/0.4535, allocations: 4.104 MB / 0.5282 GB, free: 12.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.049e-05/0.4536, allocations: 20.31 kB / 0.5282 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.528e-05/0.4536, allocations: 32 kB / 0.5282 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006462/0.4601, allocations: 1.358 MB / 0.5295 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/0.4628, allocations: 0.6454 MB / 0.5302 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/0.4752, allocations: 7.838 MB / 0.5378 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.4776, allocations: 99.98 kB / 0.5379 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003596/0.478, allocations: 167.9 kB / 0.5381 GB, free: 2.391 MB / 430.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.001188/0.4792, allocations: 0.5202 MB / 0.5386 GB, free: 1.859 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/0.4796, allocations: 194.7 kB / 0.5388 GB, free: 1.668 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/0.4903, allocations: 3.868 MB / 0.5425 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.4904, allocations: 24 kB / 0.5426 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.4904, allocations: 8 kB / 0.5426 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.821e-05/0.4904, allocations: 12.09 kB / 0.5426 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.5044, allocations: 5.665 MB / 0.5481 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.203e-05/0.5044, allocations: 7.984 kB / 0.5481 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002373/0.5068, allocations: 435.7 kB / 0.5485 GB, free: 7.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006328/0.5131, allocations: 1.268 MB / 0.5498 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004216/0.5136, allocations: 99.88 kB / 0.5499 GB, free: 6.137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.5248, allocations: 7.336 MB / 0.557 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.5248, allocations: 4 kB / 0.557 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/0.5377, allocations: 5.014 MB / 0.5619 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005483/0.5383, allocations: 174.7 kB / 0.5621 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003597/0.5386, allocations: 56 kB / 0.5622 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.54, allocations: 59.97 kB / 0.5622 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00058/0.5406, allocations: 241.6 kB / 0.5625 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002506/0.5408, allocations: 103.9 kB / 0.5625 GB, free: 8.684 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001004/0.5418, allocations: 0.6656 MB / 0.5632 GB, free: 8.016 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5418, allocations: 0 / 0.5632 GB, free: 8.016 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004626/0.5464, allocations: 1.504 MB / 0.5647 GB, free: 6.508 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.003827/0.5503, allocations: 1.596 MB / 0.5662 GB, free: 5.086 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007873/0.5581, allocations: 3.254 MB / 0.5694 GB, free: 1.766 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.5581, allocations: 0 / 0.5694 GB, free: 1.766 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004131/0.5623, allocations: 1.828 MB / 0.5712 GB, free: 15.89 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.5644, allocations: 387.4 kB / 0.5716 GB, free: 15.52 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00956/0.574, allocations: 4.689 MB / 0.5761 GB, free: 10.76 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.5753, allocations: 1.021 MB / 0.5771 GB, free: 9.699 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002104/0.5774, allocations: 0.4925 MB / 0.5776 GB, free: 9.203 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009523/0.5784, allocations: 354.1 kB / 0.578 GB, free: 8.867 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5784, allocations: 4 kB / 0.578 GB, free: 8.863 MB / 478.1 MB Notification: Performance of Templates: time 0.09326/0.6717, allocations: 54.11 MB / 0.6308 GB, free: 3.098 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.338284485042095] Failed to read output from testmodel.py, exit status != 0: 0.6811512373387814 0.871390357 0.555463511 Calling exit ...