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.001237/0.001237, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001411/0.001411, allocations: 216.6 kB / 22.24 MB, free: 5.254 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.345/1.345, allocations: 230.6 MB / 256 MB, free: 7.801 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.1366/0.1366, allocations: 23.93 MB / 336.4 MB, free: 10.91 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_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.001924/0.001924, allocations: 75.88 kB / 471.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.32, allocations: 59.87 MB / 0.5186 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009747/0.3297, allocations: 10.24 MB / 0.5286 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03893/0.3687, allocations: 29.73 MB / 0.5577 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002876/0.3715, allocations: 38.56 kB / 0.5577 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002881/0.3744, allocations: 0.6847 MB / 0.5584 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.3849, allocations: 2.756 MB / 0.561 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01535/0.4003, allocations: 4.509 MB / 0.5655 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005675/0.4059, allocations: 3.422 MB / 0.5688 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002599/0.4085, allocations: 1.708 MB / 0.5705 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.4111, allocations: 1.683 MB / 0.5721 GB, free: 2.793 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002927/0.4141, allocations: 1.896 MB / 0.574 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005669/0.4146, allocations: 324 kB / 0.5743 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01088/0.4255, allocations: 3.627 MB / 0.5778 GB, free: 12.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.4266, allocations: 0.7634 MB / 0.5786 GB, free: 12.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002005/0.4286, allocations: 1.338 MB / 0.5799 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.4453, allocations: 7.482 MB / 0.5872 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4453, allocations: 0 / 0.5872 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.4453, allocations: 0 / 0.5872 GB, free: 3.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.651e-05/0.4454, allocations: 4 kB / 0.5872 GB, free: 3.316 MB / 430.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.007291/0.4527, allocations: 3.701 MB / 0.5908 GB, free: 15.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.4527, allocations: 12.03 kB / 0.5908 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004245/0.4531, allocations: 359.2 kB / 0.5911 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/0.4558, allocations: 0.6309 MB / 0.5918 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002851/0.4586, allocations: 1.45 MB / 0.5932 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.4589, allocations: 312.1 kB / 0.5935 GB, free: 12.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004479/0.4593, allocations: 271.9 kB / 0.5937 GB, free: 12.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005274/0.4646, allocations: 3.157 MB / 0.5968 GB, free: 9.242 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.905e-05/0.4646, allocations: 0 / 0.5968 GB, free: 9.242 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002527/0.4649, allocations: 112 kB / 0.5969 GB, free: 9.133 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-05/0.465, allocations: 60 kB / 0.597 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00641/0.4714, allocations: 3.811 MB / 0.6007 GB, free: 5.25 MB / 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.01609/0.4875, allocations: 8.19 MB / 0.6087 GB, free: 12.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004505/0.492, allocations: 2.771 MB / 0.6114 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001881/0.4938, allocations: 1.234 MB / 0.6126 GB, free: 8.895 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/0.5073, allocations: 6.038 MB / 0.6185 GB, free: 2.816 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.5073, allocations: 56.56 kB / 0.6186 GB, free: 2.754 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009255/0.5083, allocations: 234.5 kB / 0.6188 GB, free: 2.523 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.637e-06/0.5083, allocations: 0 / 0.6188 GB, free: 2.523 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04142/0.5497, allocations: 11.84 MB / 0.6303 GB, free: 6.637 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.5497, allocations: 77.41 kB / 0.6304 GB, free: 6.551 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.5513, allocations: 1.218 MB / 0.6316 GB, free: 5.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.5515, allocations: 69.7 kB / 0.6317 GB, free: 5.246 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008464/0.5523, allocations: 1.184 MB / 0.6328 GB, free: 4.051 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007914/0.5531, allocations: 0.9064 MB / 0.6337 GB, free: 3.137 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008153/0.554, allocations: 0.5574 MB / 0.6343 GB, free: 2.57 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5541, allocations: 301.1 kB / 0.6345 GB, free: 2.273 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/0.5558, allocations: 1.009 MB / 0.6355 GB, free: 1.262 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0025/0.5583, allocations: 1.909 MB / 0.6374 GB, free: 14.96 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004653/0.5629, allocations: 3.203 MB / 0.6405 GB, free: 11.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/0.563, allocations: 8 kB / 0.6405 GB, free: 11.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009633/0.5726, allocations: 4.122 MB / 0.6446 GB, free: 7.141 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.5726, allocations: 16 kB / 0.6446 GB, free: 7.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.969e-05/0.5727, allocations: 28 kB / 0.6446 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005549/0.5782, allocations: 1.358 MB / 0.6459 GB, free: 5.723 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/0.5806, allocations: 0.6474 MB / 0.6466 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/0.5916, allocations: 7.915 MB / 0.6543 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.5936, allocations: 95.98 kB / 0.6544 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003356/0.594, allocations: 175.9 kB / 0.6545 GB, free: 12.51 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.00107/0.595, allocations: 0.5107 MB / 0.655 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004661/0.5955, allocations: 210.8 kB / 0.6552 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009567/0.6051, allocations: 3.871 MB / 0.659 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.6051, allocations: 24 kB / 0.659 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.6051, allocations: 7.938 kB / 0.6591 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.904e-05/0.6051, allocations: 15.94 kB / 0.6591 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.6186, allocations: 5.956 MB / 0.6649 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.6187, allocations: 4 kB / 0.6649 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001832/0.6205, allocations: 439.7 kB / 0.6653 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00536/0.6258, allocations: 1.259 MB / 0.6665 GB, free: 15.98 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003394/0.6262, allocations: 99.88 kB / 0.6666 GB, free: 15.89 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009715/0.6359, allocations: 7.413 MB / 0.6739 GB, free: 8.113 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.6359, allocations: 4 kB / 0.6739 GB, free: 8.109 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.6469, allocations: 5.02 MB / 0.6788 GB, free: 2.934 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.6474, allocations: 178.7 kB / 0.679 GB, free: 2.758 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.6477, allocations: 63.92 kB / 0.679 GB, free: 2.695 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.6488, allocations: 67.92 kB / 0.6791 GB, free: 2.629 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004941/0.6493, allocations: 233.6 kB / 0.6793 GB, free: 2.398 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002295/0.6496, allocations: 115.9 kB / 0.6794 GB, free: 2.285 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.000994/0.6505, allocations: 0.7272 MB / 0.6801 GB, free: 1.559 MB / 0.5138 GB Notification: Performance of sort global known variables: time 7.1e-08/0.6505, allocations: 0 / 0.6801 GB, free: 1.559 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.003943/0.6545, allocations: 1.504 MB / 0.6816 GB, free: 52 kB / 0.5138 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.01401/0.6685, allocations: 7.023 MB / 0.6884 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006502/0.675, allocations: 3.262 MB / 0.6916 GB, free: 5.527 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.675, allocations: 0.9375 kB / 0.6916 GB, free: 5.527 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003351/0.6784, allocations: 1.836 MB / 0.6934 GB, free: 3.645 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.6802, allocations: 388.7 kB / 0.6938 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03767/0.7179, allocations: 20.19 MB / 0.7135 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.7191, allocations: 1.033 MB / 0.7145 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00181/0.7209, allocations: 0.5046 MB / 0.715 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/0.7225, allocations: 1.189 MB / 0.7162 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of SimCode: time 6.81e-07/0.7225, allocations: 0 / 0.7162 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3368/1.059, allocations: 77.1 MB / 0.7915 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.73/16.79, allocations: 5.234 kB / 0.7915 GB, free: 137.9 MB / 0.5606 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.490094024979044] Failed to read output from testmodel.py, exit status != 0: 16.95374511097907 16.963218892 16.515536781 Calling exit ...