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.001379/0.001379, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001584/0.001584, allocations: 215.9 kB / 22.26 MB, free: 5.125 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.447/1.447, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.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.1386/0.1386, allocations: 23.89 MB / 336.3 MB, free: 11.13 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: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 63.89 kB / 471.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3227, allocations: 59.87 MB / 0.5191 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01068/0.3333, allocations: 11.82 MB / 0.5307 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04401/0.3773, allocations: 33.97 MB / 0.5639 GB, free: 8.215 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002326/0.3797, allocations: 40.09 kB / 0.5639 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002324/0.382, allocations: 0.7479 MB / 0.5646 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009013/0.391, allocations: 2.815 MB / 0.5674 GB, free: 5.449 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01368/0.4047, allocations: 4.502 MB / 0.5718 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005347/0.41, allocations: 3.42 MB / 0.5751 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002344/0.4124, allocations: 1.693 MB / 0.5768 GB, free: 14.72 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002453/0.4148, allocations: 1.687 MB / 0.5784 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00284/0.4177, allocations: 1.884 MB / 0.5803 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005241/0.4182, allocations: 324 kB / 0.5806 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01227/0.4305, allocations: 3.775 MB / 0.5842 GB, free: 7.039 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.4316, allocations: 0.7595 MB / 0.585 GB, free: 6.277 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002245/0.4338, allocations: 1.583 MB / 0.5865 GB, free: 4.688 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0177/0.4515, allocations: 7.502 MB / 0.5939 GB, free: 13.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4515, allocations: 0 / 0.5939 GB, free: 13.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4515, allocations: 4 kB / 0.5939 GB, free: 13.15 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.702e-05/0.4516, allocations: 0 / 0.5939 GB, free: 13.15 MB / 446.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.007706/0.4593, allocations: 3.715 MB / 0.5975 GB, free: 9.387 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4593, allocations: 8.031 kB / 0.5975 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002671/0.462, allocations: 0.627 MB / 0.5981 GB, free: 8.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002861/0.4649, allocations: 1.454 MB / 0.5995 GB, free: 7.262 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002625/0.4651, allocations: 308.4 kB / 0.5998 GB, free: 6.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004535/0.4656, allocations: 275.9 kB / 0.6001 GB, free: 6.664 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006273/0.4719, allocations: 3.132 MB / 0.6031 GB, free: 3.461 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-05/0.4719, allocations: 3.938 kB / 0.6032 GB, free: 3.457 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002723/0.4722, allocations: 108 kB / 0.6033 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.666e-05/0.4722, allocations: 67.94 kB / 0.6033 GB, free: 3.285 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00683/0.4791, allocations: 3.85 MB / 0.6071 GB, free: 15.42 MB / 462.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.01928/0.4984, allocations: 9.859 MB / 0.6167 GB, free: 5.164 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004993/0.5033, allocations: 2.816 MB / 0.6195 GB, free: 2.352 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002165/0.5055, allocations: 1.234 MB / 0.6207 GB, free: 1.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0151/0.5206, allocations: 6.358 MB / 0.6269 GB, free: 10.71 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.695e-05/0.5207, allocations: 52.56 kB / 0.6269 GB, free: 10.65 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001084/0.5218, allocations: 234.5 kB / 0.6271 GB, free: 10.42 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 4.559e-06/0.5218, allocations: 0 / 0.6271 GB, free: 10.42 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04878/0.5705, allocations: 11.84 MB / 0.6387 GB, free: 14.53 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.467e-05/0.5706, allocations: 77.41 kB / 0.6388 GB, free: 14.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.5725, allocations: 1.176 MB / 0.6399 GB, free: 13.26 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003841/0.5728, allocations: 65.7 kB / 0.64 GB, free: 13.19 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000962/0.5738, allocations: 1.192 MB / 0.6412 GB, free: 11.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000936/0.5747, allocations: 0.8986 MB / 0.642 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009034/0.5756, allocations: 0.5652 MB / 0.6426 GB, free: 10.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5758, allocations: 301.1 kB / 0.6429 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/0.5778, allocations: 1.013 MB / 0.6439 GB, free: 9.191 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00288/0.5807, allocations: 1.905 MB / 0.6457 GB, free: 6.895 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005315/0.586, allocations: 3.2 MB / 0.6488 GB, free: 3.273 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.825e-05/0.586, allocations: 11.98 kB / 0.6489 GB, free: 3.262 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01133/0.5973, allocations: 4.118 MB / 0.6529 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.5974, allocations: 16 kB / 0.6529 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.596e-05/0.5974, allocations: 28 kB / 0.6529 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006707/0.6041, allocations: 1.362 MB / 0.6543 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002793/0.6069, allocations: 0.6474 MB / 0.6549 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.6198, allocations: 7.99 MB / 0.6627 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/0.6223, allocations: 99.98 kB / 0.6628 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003557/0.6226, allocations: 167.9 kB / 0.6629 GB, free: 4.383 MB / 0.4981 GB 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.001156/0.6238, allocations: 0.517 MB / 0.6634 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/0.6243, allocations: 206.6 kB / 0.6636 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/0.6349, allocations: 3.871 MB / 0.6674 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.6349, allocations: 24 kB / 0.6674 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.6349, allocations: 4 kB / 0.6675 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-05/0.635, allocations: 15.94 kB / 0.6675 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/0.6498, allocations: 6.295 MB / 0.6736 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.6498, allocations: 4 kB / 0.6736 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/0.6517, allocations: 439.8 kB / 0.674 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/0.6578, allocations: 1.26 MB / 0.6753 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003194/0.6582, allocations: 99.92 kB / 0.6754 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.6694, allocations: 7.486 MB / 0.6827 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/0.6694, allocations: 4 kB / 0.6827 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/0.6821, allocations: 5.028 MB / 0.6876 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005193/0.6826, allocations: 186.6 kB / 0.6878 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/0.6829, allocations: 59.98 kB / 0.6878 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.6842, allocations: 59.98 kB / 0.6879 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004904/0.6847, allocations: 233.6 kB / 0.6881 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/0.685, allocations: 111.9 kB / 0.6882 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001051/0.686, allocations: 0.7311 MB / 0.6889 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.686, allocations: 4 kB / 0.6889 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004018/0.69, allocations: 1.5 MB / 0.6904 GB, free: 7.5 MB / 0.5294 GB 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.002906/0.6929, allocations: 1.544 MB / 0.6919 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006951/0.6999, allocations: 3.255 MB / 0.6951 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.6999, allocations: 0.5 kB / 0.6951 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003686/0.7036, allocations: 1.836 MB / 0.6969 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.7055, allocations: 393.6 kB / 0.6972 GB, free: 360 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008912/0.7144, allocations: 4.847 MB / 0.702 GB, free: 11.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.7157, allocations: 1.599 MB / 0.7035 GB, free: 9.793 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00194/0.7177, allocations: 0.5085 MB / 0.704 GB, free: 9.281 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008286/0.7185, allocations: 347.8 kB / 0.7044 GB, free: 8.949 MB / 0.545 GB Notification: Performance of SimCode: time 1.273e-06/0.7185, allocations: 0 / 0.7044 GB, free: 8.949 MB / 0.545 GB Notification: Performance of Templates: time 0.3012/1.02, allocations: 58.14 MB / 0.7612 GB, free: 166.4 MB / 0.5606 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.496988114435226] Failed to read output from testmodel.py, exit status != 0: 1.0299095730297267 1.042102683 0.5881260549999999 Calling exit ...