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.001385/0.001385, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001468/0.001468, allocations: 209.3 kB / 22.24 MB, free: 5.262 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 7.781 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.1472/0.1472, allocations: 24 MB / 336.4 MB, free: 10.86 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.002324/0.002324, allocations: 67.84 kB / 471.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.317, allocations: 59.9 MB / 0.5187 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.00989/0.3269, allocations: 10.24 MB / 0.5287 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04424/0.3711, allocations: 29.73 MB / 0.5578 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003141/0.3743, allocations: 39.97 kB / 0.5578 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003812/0.3781, allocations: 0.6915 MB / 0.5585 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01466/0.3928, allocations: 2.748 MB / 0.5612 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01385/0.4066, allocations: 4.513 MB / 0.5656 GB, free: 8.016 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005688/0.4123, allocations: 3.422 MB / 0.5689 GB, free: 5.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002618/0.4149, allocations: 1.666 MB / 0.5705 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.4177, allocations: 1.691 MB / 0.5722 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003182/0.4209, allocations: 1.673 MB / 0.5738 GB, free: 1.016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007805/0.4216, allocations: 328 kB / 0.5741 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01085/0.4325, allocations: 3.549 MB / 0.5776 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001184/0.4337, allocations: 0.7517 MB / 0.5783 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002252/0.4359, allocations: 1.346 MB / 0.5797 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01743/0.4533, allocations: 7.479 MB / 0.587 GB, free: 3.527 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4534, allocations: 0 / 0.587 GB, free: 3.527 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4534, allocations: 3.938 kB / 0.587 GB, free: 3.523 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.237e-05/0.4534, allocations: 0 / 0.587 GB, free: 3.523 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.007635/0.4611, allocations: 3.701 MB / 0.5906 GB, free: 15.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4611, allocations: 16.02 kB / 0.5906 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004815/0.4616, allocations: 363.2 kB / 0.5909 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002662/0.4643, allocations: 0.627 MB / 0.5916 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003097/0.4673, allocations: 1.442 MB / 0.593 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002836/0.4676, allocations: 312.2 kB / 0.5933 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004881/0.4681, allocations: 264 kB / 0.5935 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005592/0.4737, allocations: 3.161 MB / 0.5966 GB, free: 9.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.059e-05/0.4738, allocations: 0 / 0.5966 GB, free: 9.457 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002657/0.474, allocations: 108 kB / 0.5967 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.315e-05/0.4741, allocations: 60 kB / 0.5968 GB, free: 9.293 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00674/0.4808, allocations: 3.819 MB / 0.6005 GB, free: 5.461 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.01677/0.4976, allocations: 8.183 MB / 0.6085 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004867/0.5025, allocations: 2.794 MB / 0.6112 GB, free: 10.33 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/0.5046, allocations: 1.23 MB / 0.6124 GB, free: 9.094 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01438/0.5189, allocations: 6.018 MB / 0.6183 GB, free: 3.035 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.519, allocations: 52.56 kB / 0.6183 GB, free: 2.977 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009597/0.52, allocations: 246.4 kB / 0.6186 GB, free: 2.734 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.128e-06/0.52, allocations: 0 / 0.6186 GB, free: 2.734 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04603/0.566, allocations: 11.84 MB / 0.6301 GB, free: 6.844 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.5661, allocations: 77.41 kB / 0.6302 GB, free: 6.758 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.568, allocations: 1.214 MB / 0.6314 GB, free: 5.531 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003075/0.5683, allocations: 69.7 kB / 0.6315 GB, free: 5.457 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009931/0.5693, allocations: 1.184 MB / 0.6326 GB, free: 4.262 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/0.5704, allocations: 0.9064 MB / 0.6335 GB, free: 3.348 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009984/0.5714, allocations: 0.5613 MB / 0.6341 GB, free: 2.777 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5715, allocations: 305.1 kB / 0.6343 GB, free: 2.477 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.5735, allocations: 1.009 MB / 0.6353 GB, free: 1.465 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003046/0.5766, allocations: 1.909 MB / 0.6372 GB, free: 15.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005351/0.5819, allocations: 3.2 MB / 0.6403 GB, free: 11.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/0.582, allocations: 8 kB / 0.6403 GB, free: 11.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01093/0.5929, allocations: 4.122 MB / 0.6444 GB, free: 7.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/0.5929, allocations: 19.98 kB / 0.6444 GB, free: 7.328 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-05/0.593, allocations: 28.38 kB / 0.6444 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006446/0.5994, allocations: 1.354 MB / 0.6457 GB, free: 5.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002571/0.602, allocations: 0.6552 MB / 0.6464 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/0.6145, allocations: 7.924 MB / 0.6541 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00223/0.6167, allocations: 95.98 kB / 0.6542 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003709/0.6171, allocations: 171.9 kB / 0.6544 GB, free: 12.71 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.001173/0.6182, allocations: 0.5125 MB / 0.6549 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/0.6187, allocations: 210.6 kB / 0.6551 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/0.629, allocations: 3.859 MB / 0.6588 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.629, allocations: 24 kB / 0.6588 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.629, allocations: 8 kB / 0.6589 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.712e-05/0.6291, allocations: 11.95 kB / 0.6589 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/0.643, allocations: 5.956 MB / 0.6647 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.643, allocations: 0 / 0.6647 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001802/0.6448, allocations: 439.3 kB / 0.6651 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005544/0.6504, allocations: 1.265 MB / 0.6663 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/0.6507, allocations: 95.94 kB / 0.6664 GB, free: 104 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/0.662, allocations: 7.416 MB / 0.6737 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.662, allocations: 4 kB / 0.6737 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/0.675, allocations: 5.028 MB / 0.6786 GB, free: 3.137 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005411/0.6755, allocations: 182.6 kB / 0.6788 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003421/0.6758, allocations: 55.98 kB / 0.6788 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.6772, allocations: 59.98 kB / 0.6789 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005228/0.6777, allocations: 233.7 kB / 0.6791 GB, free: 2.613 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/0.6779, allocations: 115.9 kB / 0.6792 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001114/0.679, allocations: 0.7272 MB / 0.6799 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.679, allocations: 4 kB / 0.6799 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004218/0.6833, allocations: 1.504 MB / 0.6814 GB, free: 268 kB / 0.5137 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.01555/0.6988, allocations: 7.03 MB / 0.6883 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007093/0.7059, allocations: 3.258 MB / 0.6914 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.7059, allocations: 0 / 0.6914 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00372/0.7096, allocations: 1.833 MB / 0.6932 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.7116, allocations: 397.8 kB / 0.6936 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04194/0.7535, allocations: 20.18 MB / 0.7133 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.7548, allocations: 1.033 MB / 0.7143 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002057/0.7569, allocations: 0.5122 MB / 0.7148 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/0.7587, allocations: 1.185 MB / 0.716 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of SimCode: time 9.62e-07/0.7587, allocations: 0 / 0.716 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3693/1.128, allocations: 76.18 MB / 0.7904 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.7/17.83, allocations: 0 / 0.7904 GB, free: 138.9 MB / 0.5606 GB " [Timeout remaining time 642] (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: 20.65440068813041] Failed to read output from testmodel.py, exit status != 0: 17.994996122084558 18.00521857 17.549301968 Calling exit ...