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.001836/0.001836, allocations: 78.33 kB / 19.18 MB, free: 2.516 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.002194/0.002194, allocations: 162.2 kB / 22.46 MB, free: 5.379 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.439/1.439, allocations: 177.1 MB / 202.8 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] 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.1401/0.1401, allocations: 17.45 MB / 276.6 MB, free: 15.18 MB / 270.1 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 3.306e-06/3.306e-06, allocations: 7.922 kB / 412.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.508e-05, allocations: 2.281 kB / 412.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01256/0.01259, allocations: 10.2 MB / 422.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2098/0.2224, allocations: 29.72 MB / 452 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001669/0.224, allocations: 37.47 kB / 452.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.2258, allocations: 0.6831 MB / 452.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007018/0.2328, allocations: 2.859 MB / 455.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.244, allocations: 4.644 MB / 460.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004941/0.2489, allocations: 3.533 MB / 463.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002322/0.2512, allocations: 1.68 MB / 465.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002885/0.2541, allocations: 2.36 MB / 467.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002254/0.2564, allocations: 1.499 MB / 469.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005393/0.2569, allocations: 323 kB / 469.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009718/0.2666, allocations: 3.583 MB / 473.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007878/0.2674, allocations: 0.7676 MB / 474 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.2693, allocations: 1.156 MB / 475.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01339/0.2827, allocations: 7.925 MB / 483.1 MB, free: 5.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2827, allocations: 0 / 483.1 MB, free: 5.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2827, allocations: 0 / 483.1 MB, free: 5.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.576e-05/0.2827, allocations: 2.562 kB / 483.1 MB, free: 5.93 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.006365/0.2891, allocations: 3.689 MB / 486.8 MB, free: 3.406 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2891, allocations: 8.031 kB / 486.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002421/0.2916, allocations: 0.6231 MB / 487.4 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/0.2937, allocations: 1.437 MB / 488.8 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.2938, allocations: 308.6 kB / 489.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003519/0.2942, allocations: 268.3 kB / 489.4 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005387/0.2996, allocations: 3.154 MB / 492.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.433e-05/0.2996, allocations: 3 kB / 492.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002906/0.2999, allocations: 115.9 kB / 492.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.748e-05/0.3, allocations: 64 kB / 492.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006826/0.3068, allocations: 3.809 MB / 496.5 MB, free: 9.582 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.0168/0.3236, allocations: 7.901 MB / 0.4926 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00512/0.3287, allocations: 2.78 MB / 0.4953 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/0.3309, allocations: 1.223 MB / 0.4965 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/0.3458, allocations: 6.004 MB / 0.5024 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.447e-05/0.3459, allocations: 59.64 kB / 0.5024 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001083/0.3469, allocations: 229.2 kB / 0.5027 GB, free: 7.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.869e-06/0.347, allocations: 0 / 0.5027 GB, free: 7.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04859/0.3955, allocations: 11.84 MB / 0.5142 GB, free: 11.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.152e-05/0.3956, allocations: 77.41 kB / 0.5143 GB, free: 11.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.3973, allocations: 1.118 MB / 0.5154 GB, free: 10.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003547/0.3976, allocations: 69.7 kB / 0.5155 GB, free: 10.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.3986, allocations: 1.184 MB / 0.5166 GB, free: 9.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009515/0.3996, allocations: 0.8838 MB / 0.5175 GB, free: 8.387 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00091/0.4005, allocations: 0.5574 MB / 0.518 GB, free: 7.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4006, allocations: 305.1 kB / 0.5183 GB, free: 7.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/0.4026, allocations: 1.006 MB / 0.5193 GB, free: 6.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003035/0.4057, allocations: 1.91 MB / 0.5212 GB, free: 4.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005334/0.411, allocations: 3.196 MB / 0.5243 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/0.411, allocations: 12 kB / 0.5243 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01514/0.4262, allocations: 4.112 MB / 0.5283 GB, free: 12.72 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.487e-05/0.4262, allocations: 19.94 kB / 0.5283 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-05/0.4263, allocations: 28 kB / 0.5283 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/0.4365, allocations: 1.353 MB / 0.5297 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004493/0.441, allocations: 0.6534 MB / 0.5303 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01472/0.4557, allocations: 7.849 MB / 0.538 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/0.4582, allocations: 95.98 kB / 0.5381 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004216/0.4586, allocations: 171.9 kB / 0.5382 GB, free: 2.25 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.001371/0.46, allocations: 0.5131 MB / 0.5387 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005715/0.4606, allocations: 194.7 kB / 0.5389 GB, free: 1.535 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/0.4716, allocations: 3.86 MB / 0.5427 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.4716, allocations: 24 kB / 0.5427 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4716, allocations: 4 kB / 0.5427 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.2e-05/0.4716, allocations: 15.94 kB / 0.5427 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.4861, allocations: 5.671 MB / 0.5483 GB, free: 7.816 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.4861, allocations: 4 kB / 0.5483 GB, free: 7.812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002061/0.4881, allocations: 439.4 kB / 0.5487 GB, free: 7.383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00629/0.4944, allocations: 1.264 MB / 0.5499 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004958/0.4949, allocations: 103.9 kB / 0.55 GB, free: 6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.5062, allocations: 7.342 MB / 0.5572 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.5062, allocations: 4 kB / 0.5572 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/0.5189, allocations: 5.008 MB / 0.5621 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004778/0.5194, allocations: 174.7 kB / 0.5623 GB, free: 9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003867/0.5198, allocations: 52 kB / 0.5623 GB, free: 8.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.5212, allocations: 59.98 kB / 0.5624 GB, free: 8.891 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005684/0.5218, allocations: 233.6 kB / 0.5626 GB, free: 8.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/0.522, allocations: 115.9 kB / 0.5627 GB, free: 8.547 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001002/0.523, allocations: 0.6617 MB / 0.5633 GB, free: 7.883 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.523, allocations: 0 / 0.5633 GB, free: 7.883 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004502/0.5275, allocations: 1.492 MB / 0.5648 GB, free: 6.387 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.004217/0.5317, allocations: 1.61 MB / 0.5664 GB, free: 4.957 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007473/0.5392, allocations: 3.254 MB / 0.5695 GB, free: 1.637 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.5392, allocations: 4 kB / 0.5696 GB, free: 1.633 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004098/0.5433, allocations: 1.828 MB / 0.5713 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.5456, allocations: 397.2 kB / 0.5717 GB, free: 15.38 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00897/0.5546, allocations: 4.666 MB / 0.5763 GB, free: 10.63 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.5558, allocations: 1.033 MB / 0.5773 GB, free: 9.562 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001914/0.5577, allocations: 0.5002 MB / 0.5778 GB, free: 9.059 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009055/0.5586, allocations: 345.2 kB / 0.5781 GB, free: 8.73 MB / 478.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5586, allocations: 0 / 0.5781 GB, free: 8.73 MB / 478.1 MB Notification: Performance of Templates: time 0.08864/0.6472, allocations: 54.12 MB / 0.6309 GB, free: 2.957 MB / 0.5137 GB " [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=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.334260109812021] Failed to read output from testmodel.py, exit status != 0: 0.6568520404398441 0.825154495 0.539684014 Calling exit ...