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.001319/0.001319, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001432/0.001432, allocations: 219.4 kB / 23.01 MB, free: 4.566 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 8.023 MB / 206.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.1359/0.1359, allocations: 23.84 MB / 337 MB, free: 11.2 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: 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.002081/0.002081, allocations: 80.11 kB / 472.4 MB, free: 7.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2948, allocations: 59.85 MB / 0.5198 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01033/0.3051, allocations: 11.81 MB / 0.5313 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04384/0.3489, allocations: 33.98 MB / 0.5645 GB, free: 8.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.3511, allocations: 38.59 kB / 0.5646 GB, free: 8.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002245/0.3533, allocations: 0.7505 MB / 0.5653 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008823/0.3621, allocations: 2.807 MB / 0.568 GB, free: 5.473 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01308/0.3752, allocations: 4.518 MB / 0.5724 GB, free: 2.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005319/0.3805, allocations: 3.413 MB / 0.5758 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00269/0.3832, allocations: 1.696 MB / 0.5774 GB, free: 14.74 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00287/0.3861, allocations: 1.691 MB / 0.5791 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003571/0.3897, allocations: 1.884 MB / 0.5809 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007808/0.3905, allocations: 324 kB / 0.5812 GB, free: 10.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01241/0.4029, allocations: 3.779 MB / 0.5849 GB, free: 7.145 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001074/0.4039, allocations: 0.7517 MB / 0.5857 GB, free: 6.391 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002651/0.4066, allocations: 1.591 MB / 0.5872 GB, free: 4.793 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01726/0.4238, allocations: 7.506 MB / 0.5945 GB, free: 13.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4239, allocations: 0 / 0.5945 GB, free: 13.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4239, allocations: 3.938 kB / 0.5945 GB, free: 13.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000115/0.424, allocations: 0 / 0.5945 GB, free: 13.25 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.008603/0.4326, allocations: 3.715 MB / 0.5982 GB, free: 9.484 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4326, allocations: 8.031 kB / 0.5982 GB, free: 9.477 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002898/0.4355, allocations: 0.6231 MB / 0.5988 GB, free: 8.852 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.4385, allocations: 1.446 MB / 0.6002 GB, free: 7.371 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.4388, allocations: 312.4 kB / 0.6005 GB, free: 7.039 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004787/0.4393, allocations: 271.9 kB / 0.6008 GB, free: 6.773 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005623/0.4449, allocations: 3.132 MB / 0.6038 GB, free: 3.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.859e-05/0.445, allocations: 4 kB / 0.6038 GB, free: 3.566 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.4453, allocations: 104 kB / 0.6039 GB, free: 3.465 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-05/0.4453, allocations: 67.94 kB / 0.604 GB, free: 3.398 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006772/0.4521, allocations: 3.854 MB / 0.6077 GB, free: 15.53 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.01784/0.4699, allocations: 9.874 MB / 0.6174 GB, free: 5.262 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004988/0.4749, allocations: 2.798 MB / 0.6201 GB, free: 2.469 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002167/0.4771, allocations: 1.235 MB / 0.6213 GB, free: 1.227 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01477/0.4919, allocations: 6.368 MB / 0.6275 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.342e-05/0.4919, allocations: 52.55 kB / 0.6276 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009903/0.4929, allocations: 230.5 kB / 0.6278 GB, free: 10.53 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 3.627e-06/0.4929, allocations: 0 / 0.6278 GB, free: 10.53 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04724/0.5401, allocations: 11.85 MB / 0.6394 GB, free: 14.63 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.5402, allocations: 77.41 kB / 0.6395 GB, free: 14.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/0.5419, allocations: 1.168 MB / 0.6406 GB, free: 13.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002754/0.5421, allocations: 73.7 kB / 0.6407 GB, free: 13.29 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009336/0.5431, allocations: 1.18 MB / 0.6418 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009338/0.544, allocations: 0.9025 MB / 0.6427 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009195/0.5449, allocations: 0.5691 MB / 0.6433 GB, free: 10.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.5451, allocations: 301.1 kB / 0.6436 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.547, allocations: 1.013 MB / 0.6445 GB, free: 9.293 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002882/0.5499, allocations: 1.905 MB / 0.6464 GB, free: 6.996 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005169/0.5551, allocations: 3.196 MB / 0.6495 GB, free: 3.379 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/0.5551, allocations: 8 kB / 0.6495 GB, free: 3.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01124/0.5663, allocations: 4.119 MB / 0.6536 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.5663, allocations: 20 kB / 0.6536 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.366e-05/0.5664, allocations: 28 kB / 0.6536 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006513/0.5729, allocations: 1.362 MB / 0.6549 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.5755, allocations: 0.6514 MB / 0.6556 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/0.5884, allocations: 7.976 MB / 0.6634 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.5906, allocations: 99.98 kB / 0.6634 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004026/0.591, allocations: 171.9 kB / 0.6636 GB, free: 4.488 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.001138/0.5921, allocations: 0.5092 MB / 0.6641 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.5926, allocations: 206.6 kB / 0.6643 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/0.6035, allocations: 3.867 MB / 0.6681 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.013e-05/0.6036, allocations: 28 kB / 0.6681 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.6036, allocations: 4 kB / 0.6681 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.989e-05/0.6036, allocations: 11.95 kB / 0.6681 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/0.6185, allocations: 6.311 MB / 0.6743 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.6185, allocations: 4 kB / 0.6743 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.6205, allocations: 435.4 kB / 0.6747 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00607/0.6266, allocations: 1.268 MB / 0.6759 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002587/0.6268, allocations: 95.94 kB / 0.676 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.638, allocations: 7.493 MB / 0.6834 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/0.638, allocations: 4 kB / 0.6834 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/0.6509, allocations: 5.02 MB / 0.6883 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000476/0.6513, allocations: 182.6 kB / 0.6884 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003689/0.6517, allocations: 52.09 kB / 0.6885 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/0.6532, allocations: 67.91 kB / 0.6886 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005202/0.6537, allocations: 237.6 kB / 0.6888 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/0.6539, allocations: 107.9 kB / 0.6889 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001106/0.6551, allocations: 0.735 MB / 0.6896 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.6551, allocations: 0 / 0.6896 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004105/0.6592, allocations: 1.496 MB / 0.6911 GB, free: 7.613 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.003263/0.6624, allocations: 1.56 MB / 0.6926 GB, free: 6.039 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007057/0.6695, allocations: 3.246 MB / 0.6958 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.6695, allocations: 0 / 0.6958 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003799/0.6733, allocations: 1.841 MB / 0.6975 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/0.6753, allocations: 390 kB / 0.6979 GB, free: 468 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009363/0.6846, allocations: 4.892 MB / 0.7027 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.6862, allocations: 1.595 MB / 0.7043 GB, free: 9.848 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/0.6874, allocations: 447.9 kB / 0.7047 GB, free: 9.422 MB / 0.545 GB Notification: Performance of SimCode: time 7.52e-07/0.6874, allocations: 0 / 0.7047 GB, free: 9.422 MB / 0.545 GB Notification: Performance of Templates: time 0.281/0.9684, allocations: 90.45 MB / 0.793 GB, free: 136.4 MB / 0.5606 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 os._exit(0), Time elapsed: 12.079892912181094] Failed to read output from testmodel.py, exit status != 0: 0.9773032260127366 0.986320926 0.5599791909999999 Calling exit ...