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.001245/0.001245, 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.001427/0.001427, allocations: 214.9 kB / 22.25 MB, free: 5.121 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.339/1.339, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 179] 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.1289/0.1289, allocations: 23.85 MB / 336.3 MB, free: 11.22 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.00192/0.00192, allocations: 63.91 kB / 471.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2857, allocations: 59.86 MB / 0.5186 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009258/0.295, allocations: 11.8 MB / 0.5301 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03983/0.3348, allocations: 33.98 MB / 0.5633 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00218/0.337, allocations: 38.97 kB / 0.5633 GB, free: 8.082 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002185/0.3391, allocations: 0.7547 MB / 0.5641 GB, free: 7.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008494/0.3476, allocations: 2.807 MB / 0.5668 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01275/0.3604, allocations: 4.513 MB / 0.5712 GB, free: 1.879 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005097/0.3655, allocations: 3.42 MB / 0.5746 GB, free: 15.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002202/0.3677, allocations: 1.695 MB / 0.5762 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002308/0.37, allocations: 1.689 MB / 0.5779 GB, free: 13.21 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002853/0.3728, allocations: 1.884 MB / 0.5797 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005156/0.3734, allocations: 324 kB / 0.58 GB, free: 11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01175/0.3851, allocations: 3.779 MB / 0.5837 GB, free: 7.215 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009277/0.386, allocations: 0.7517 MB / 0.5844 GB, free: 6.461 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002026/0.3881, allocations: 1.587 MB / 0.586 GB, free: 4.867 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.404, allocations: 7.506 MB / 0.5933 GB, free: 13.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.404, allocations: 0 / 0.5933 GB, free: 13.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.404, allocations: 0 / 0.5933 GB, free: 13.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.68e-05/0.4041, allocations: 0 / 0.5933 GB, free: 13.33 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.007358/0.4115, allocations: 3.715 MB / 0.597 GB, free: 9.566 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.4115, allocations: 8.031 kB / 0.597 GB, free: 9.559 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004296/0.4119, allocations: 359.2 kB / 0.5973 GB, free: 9.199 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002492/0.4144, allocations: 0.6309 MB / 0.5979 GB, free: 8.566 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002717/0.4171, allocations: 1.438 MB / 0.5993 GB, free: 7.094 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.4174, allocations: 312.2 kB / 0.5996 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004388/0.4179, allocations: 271.9 kB / 0.5999 GB, free: 6.496 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005047/0.4229, allocations: 3.132 MB / 0.6029 GB, free: 3.293 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.08e-05/0.423, allocations: 3.938 kB / 0.6029 GB, free: 3.289 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002524/0.4232, allocations: 104 kB / 0.603 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.108e-05/0.4233, allocations: 64 kB / 0.6031 GB, free: 3.125 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00629/0.4295, allocations: 3.862 MB / 0.6069 GB, free: 15.25 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.0171/0.4466, allocations: 9.866 MB / 0.6165 GB, free: 4.984 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00468/0.4513, allocations: 2.812 MB / 0.6193 GB, free: 2.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001936/0.4533, allocations: 1.231 MB / 0.6205 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01335/0.4666, allocations: 6.368 MB / 0.6267 GB, free: 10.53 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.4667, allocations: 48.56 kB / 0.6267 GB, free: 10.48 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009291/0.4676, allocations: 230.5 kB / 0.6269 GB, free: 10.25 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 3.777e-06/0.4676, allocations: 4 kB / 0.6269 GB, free: 10.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04411/0.5117, allocations: 11.84 MB / 0.6385 GB, free: 14.35 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.5118, allocations: 77.41 kB / 0.6386 GB, free: 14.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.5133, allocations: 1.168 MB / 0.6397 GB, free: 13.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002712/0.5136, allocations: 69.7 kB / 0.6398 GB, free: 13.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008821/0.5145, allocations: 1.18 MB / 0.6409 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009033/0.5154, allocations: 0.9064 MB / 0.6418 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008574/0.5162, allocations: 0.5691 MB / 0.6424 GB, free: 10.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5164, allocations: 301.1 kB / 0.6427 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.5183, allocations: 1.009 MB / 0.6437 GB, free: 9.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/0.5209, allocations: 1.909 MB / 0.6455 GB, free: 6.719 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004857/0.5258, allocations: 3.204 MB / 0.6487 GB, free: 3.094 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.858e-05/0.5258, allocations: 8 kB / 0.6487 GB, free: 3.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01042/0.5362, allocations: 4.114 MB / 0.6527 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.5362, allocations: 20 kB / 0.6527 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.06e-05/0.5363, allocations: 31.94 kB / 0.6527 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005899/0.5422, allocations: 1.357 MB / 0.6541 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/0.5446, allocations: 0.6514 MB / 0.6547 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.5564, allocations: 7.973 MB / 0.6625 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002104/0.5585, allocations: 104 kB / 0.6626 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/0.5588, allocations: 171.9 kB / 0.6627 GB, free: 4.207 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.001111/0.5599, allocations: 0.513 MB / 0.6632 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004806/0.5604, allocations: 210.6 kB / 0.6634 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/0.5704, allocations: 3.867 MB / 0.6672 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/0.5705, allocations: 24 kB / 0.6672 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.5705, allocations: 7.984 kB / 0.6672 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.823e-05/0.5705, allocations: 11.95 kB / 0.6673 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01363/0.5841, allocations: 6.299 MB / 0.6734 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.5841, allocations: 4 kB / 0.6734 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/0.5859, allocations: 435.7 kB / 0.6738 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005506/0.5914, allocations: 1.264 MB / 0.6751 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002891/0.5917, allocations: 99.92 kB / 0.6752 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/0.6018, allocations: 7.489 MB / 0.6825 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.6018, allocations: 8.031 kB / 0.6825 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/0.6133, allocations: 5.028 MB / 0.6874 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004307/0.6137, allocations: 186.5 kB / 0.6876 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002962/0.614, allocations: 56 kB / 0.6876 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.6152, allocations: 55.98 kB / 0.6877 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00047/0.6157, allocations: 241.6 kB / 0.6879 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/0.6159, allocations: 107.9 kB / 0.688 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009767/0.6169, allocations: 0.7312 MB / 0.6887 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.6169, allocations: 0 / 0.6887 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003834/0.6207, allocations: 1.504 MB / 0.6902 GB, free: 7.324 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.0144/0.6351, allocations: 7.023 MB / 0.697 GB, free: 136 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00717/0.6423, allocations: 3.251 MB / 0.7002 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.6423, allocations: 0 / 0.7002 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003718/0.646, allocations: 1.839 MB / 0.702 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/0.6479, allocations: 401.8 kB / 0.7024 GB, free: 10.53 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03877/0.6867, allocations: 20.19 MB / 0.7221 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/0.6881, allocations: 1.595 MB / 0.7237 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001868/0.6899, allocations: 0.5161 MB / 0.7242 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001719/0.6916, allocations: 1.18 MB / 0.7253 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of SimCode: time 1.263e-06/0.6916, allocations: 0 / 0.7253 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3191/1.011, allocations: 77.33 MB / 0.8009 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.32/26.33, allocations: 6.875 kB / 0.8009 GB, free: 129.7 MB / 0.5606 GB " [Timeout remaining time 634] (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: 28.96975902900158] Failed to read output from testmodel.py, exit status != 0: 26.49164277499949 26.500266526 26.093993838 Calling exit ...