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.001402/0.001402, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.00146/0.00146, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.478/1.478, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1735/0.1735, allocations: 23.84 MB / 332.7 MB, free: 12.35 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) [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.002866/0.002866, allocations: 60.14 kB / 466 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3702, allocations: 59.83 MB / 0.5135 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01022/0.3804, allocations: 11.75 MB / 0.5249 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04502/0.4254, allocations: 33.91 MB / 0.5581 GB, free: 7.801 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.4279, allocations: 35.62 kB / 0.5581 GB, free: 7.785 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002413/0.4303, allocations: 0.7652 MB / 0.5588 GB, free: 7.23 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.4417, allocations: 2.784 MB / 0.5616 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01463/0.4563, allocations: 4.456 MB / 0.5659 GB, free: 1.609 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006137/0.4624, allocations: 3.416 MB / 0.5692 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002686/0.4651, allocations: 1.733 MB / 0.5709 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003082/0.4682, allocations: 1.685 MB / 0.5726 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003624/0.4718, allocations: 1.892 MB / 0.5744 GB, free: 12.35 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007914/0.4726, allocations: 323.5 kB / 0.5747 GB, free: 12.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01498/0.4876, allocations: 3.779 MB / 0.5784 GB, free: 8.477 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001436/0.489, allocations: 0.7478 MB / 0.5792 GB, free: 7.727 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002616/0.4917, allocations: 1.579 MB / 0.5807 GB, free: 6.141 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01838/0.51, allocations: 7.51 MB / 0.588 GB, free: 14.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.51, allocations: 4 kB / 0.588 GB, free: 14.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5101, allocations: 0 / 0.588 GB, free: 14.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.448e-05/0.5101, allocations: 0 / 0.588 GB, free: 14.6 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.009262/0.5194, allocations: 3.788 MB / 0.5917 GB, free: 10.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5195, allocations: 8.031 kB / 0.5917 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005188/0.52, allocations: 363.2 kB / 0.5921 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00306/0.523, allocations: 0.627 MB / 0.5927 GB, free: 9.738 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.526, allocations: 1.518 MB / 0.5942 GB, free: 8.172 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.5264, allocations: 252.8 kB / 0.5944 GB, free: 7.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005185/0.5269, allocations: 275.9 kB / 0.5947 GB, free: 7.641 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005829/0.5327, allocations: 3.132 MB / 0.5978 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.394e-05/0.5327, allocations: 0 / 0.5978 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002888/0.533, allocations: 108 kB / 0.5979 GB, free: 4.332 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-05/0.5331, allocations: 64 kB / 0.5979 GB, free: 4.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007147/0.5402, allocations: 3.854 MB / 0.6017 GB, free: 412 kB / 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.02075/0.561, allocations: 9.969 MB / 0.6114 GB, free: 6.043 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005352/0.5663, allocations: 3.325 MB / 0.6147 GB, free: 2.594 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002146/0.5685, allocations: 1.231 MB / 0.6159 GB, free: 1.352 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01721/0.5857, allocations: 10.93 MB / 0.6265 GB, free: 5.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.5857, allocations: 48.56 kB / 0.6266 GB, free: 5.215 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001072/0.5868, allocations: 230.5 kB / 0.6268 GB, free: 4.988 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 4.589e-06/0.5868, allocations: 3.938 kB / 0.6268 GB, free: 4.984 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04892/0.6357, allocations: 12.32 MB / 0.6388 GB, free: 8.504 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.6358, allocations: 81.34 kB / 0.6389 GB, free: 8.414 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/0.6375, allocations: 1.164 MB / 0.64 GB, free: 7.238 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.6377, allocations: 69.7 kB / 0.6401 GB, free: 7.164 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008736/0.6386, allocations: 1.188 MB / 0.6413 GB, free: 5.965 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000871/0.6394, allocations: 0.8986 MB / 0.6422 GB, free: 5.059 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008962/0.6403, allocations: 0.5613 MB / 0.6427 GB, free: 4.488 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6405, allocations: 301.1 kB / 0.643 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001969/0.6424, allocations: 1.021 MB / 0.644 GB, free: 3.168 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/0.6452, allocations: 1.901 MB / 0.6458 GB, free: 0.875 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005165/0.6504, allocations: 3.192 MB / 0.649 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.99e-05/0.6504, allocations: 12 kB / 0.649 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01095/0.6613, allocations: 4.122 MB / 0.653 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.6614, allocations: 16.38 kB / 0.653 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.524e-05/0.6614, allocations: 32 kB / 0.653 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006601/0.668, allocations: 1.368 MB / 0.6544 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/0.6709, allocations: 0.6474 MB / 0.655 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/0.6839, allocations: 8.276 MB / 0.6631 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002383/0.6863, allocations: 108 kB / 0.6632 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004049/0.6867, allocations: 167.9 kB / 0.6634 GB, free: 13.99 MB / 0.5137 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.001223/0.6879, allocations: 0.5087 MB / 0.6639 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005609/0.6885, allocations: 210.6 kB / 0.6641 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/0.6993, allocations: 3.867 MB / 0.6678 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/0.6994, allocations: 24 kB / 0.6679 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.6994, allocations: 4 kB / 0.6679 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.12e-05/0.6994, allocations: 15.95 kB / 0.6679 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.7146, allocations: 6.316 MB / 0.674 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.7146, allocations: 8.062 kB / 0.674 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/0.7168, allocations: 435.4 kB / 0.6745 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006119/0.7229, allocations: 1.264 MB / 0.6757 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004625/0.7233, allocations: 99.92 kB / 0.6758 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/0.7347, allocations: 7.784 MB / 0.6834 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.7347, allocations: 7.938 kB / 0.6834 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/0.7478, allocations: 5.024 MB / 0.6883 GB, free: 3.582 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006134/0.7485, allocations: 263.6 kB / 0.6886 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004655/0.7489, allocations: 59.94 kB / 0.6886 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/0.7504, allocations: 59.97 kB / 0.6887 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005846/0.751, allocations: 225.7 kB / 0.6889 GB, free: 2.965 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002984/0.7513, allocations: 115.9 kB / 0.689 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001179/0.7524, allocations: 0.735 MB / 0.6897 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7524, allocations: 0 / 0.6897 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004988/0.7574, allocations: 1.496 MB / 0.6912 GB, free: 0.6172 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.01719/0.7746, allocations: 7.04 MB / 0.6981 GB, free: 9.418 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00818/0.7828, allocations: 3.334 MB / 0.7013 GB, free: 5.996 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.7828, allocations: 0 / 0.7013 GB, free: 5.996 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004548/0.7874, allocations: 1.9 MB / 0.7032 GB, free: 4.031 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.7898, allocations: 390.3 kB / 0.7035 GB, free: 3.648 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2627/1.052, allocations: 20.19 MB / 0.7232 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/1.054, allocations: 1.594 MB / 0.7248 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001987/1.056, allocations: 0.5007 MB / 0.7253 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/1.057, allocations: 1.191 MB / 0.7265 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.072e-06/1.057, allocations: 3.812 kB / 0.7265 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1208/1.178, allocations: 74.83 MB / 0.7995 GB, free: 125.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.04/27.22, allocations: 0 / 0.7995 GB, free: 125.7 MB / 0.5606 GB " [Timeout remaining time 633] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.LeadAcidBattery_res.csv --start-time 0 --stop-time 47800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 19.12 Chemical_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.205014118007966] Failed to read output from testmodel.py, exit status != 0: 27.387527373008197 27.406449944 26.891971658 Calling exit ...