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.001879/0.001879, allocations: 103.3 kB / 16.45 MB, free: 6.5 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.002354/0.002354, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.497/1.497, allocations: 230.6 MB / 252.8 MB, free: 8.941 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.1607/0.1607, allocations: 23.88 MB / 332.7 MB, free: 12.3 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.002276/0.002276, allocations: 67.91 kB / 466 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.316, allocations: 59.83 MB / 0.5135 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01035/0.3263, allocations: 11.75 MB / 0.525 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04566/0.372, allocations: 33.91 MB / 0.5581 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.3743, allocations: 39.03 kB / 0.5582 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002674/0.3769, allocations: 0.7621 MB / 0.5589 GB, free: 7.273 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009522/0.3865, allocations: 2.783 MB / 0.5616 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01625/0.4027, allocations: 4.457 MB / 0.566 GB, free: 1.652 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006461/0.4092, allocations: 3.419 MB / 0.5693 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002782/0.4119, allocations: 1.729 MB / 0.571 GB, free: 14.37 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002903/0.4148, allocations: 1.685 MB / 0.5726 GB, free: 13.56 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003427/0.4183, allocations: 1.896 MB / 0.5745 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007348/0.419, allocations: 329.3 kB / 0.5748 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.4321, allocations: 3.764 MB / 0.5785 GB, free: 8.434 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001295/0.4334, allocations: 0.7634 MB / 0.5792 GB, free: 7.668 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00281/0.4362, allocations: 1.583 MB / 0.5808 GB, free: 6.078 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01759/0.4538, allocations: 7.502 MB / 0.5881 GB, free: 14.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4538, allocations: 0 / 0.5881 GB, free: 14.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4538, allocations: 0 / 0.5881 GB, free: 14.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001035/0.4539, allocations: 0 / 0.5881 GB, free: 14.55 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.008877/0.4628, allocations: 3.784 MB / 0.5918 GB, free: 10.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.4628, allocations: 12.03 kB / 0.5918 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005511/0.4634, allocations: 359.2 kB / 0.5922 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003028/0.4664, allocations: 0.6309 MB / 0.5928 GB, free: 9.688 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003108/0.4695, allocations: 1.514 MB / 0.5943 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/0.4698, allocations: 264.7 kB / 0.5945 GB, free: 7.852 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006002/0.4704, allocations: 271.9 kB / 0.5948 GB, free: 7.586 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006568/0.4769, allocations: 3.128 MB / 0.5978 GB, free: 4.387 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.44e-05/0.477, allocations: 3.938 kB / 0.5978 GB, free: 4.383 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.4773, allocations: 108 kB / 0.5979 GB, free: 4.277 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.534e-05/0.4773, allocations: 67.94 kB / 0.598 GB, free: 4.211 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007299/0.4846, allocations: 3.854 MB / 0.6018 GB, free: 352 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.01959/0.5042, allocations: 9.965 MB / 0.6115 GB, free: 5.988 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005785/0.51, allocations: 3.324 MB / 0.6147 GB, free: 2.539 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002378/0.5124, allocations: 1.231 MB / 0.6159 GB, free: 1.297 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01995/0.5323, allocations: 10.93 MB / 0.6266 GB, free: 5.215 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.033e-05/0.5324, allocations: 52.56 kB / 0.6267 GB, free: 5.156 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001255/0.5337, allocations: 226.5 kB / 0.6269 GB, free: 4.934 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 8.306e-06/0.5337, allocations: 0 / 0.6269 GB, free: 4.934 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.05129/0.585, allocations: 12.31 MB / 0.6389 GB, free: 8.457 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.585, allocations: 77.41 kB / 0.639 GB, free: 8.371 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/0.5869, allocations: 1.168 MB / 0.6401 GB, free: 7.191 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004001/0.5873, allocations: 69.7 kB / 0.6402 GB, free: 7.117 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.5884, allocations: 1.188 MB / 0.6413 GB, free: 5.918 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001132/0.5895, allocations: 0.9025 MB / 0.6422 GB, free: 5.008 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.5907, allocations: 0.5613 MB / 0.6428 GB, free: 4.438 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5909, allocations: 301.1 kB / 0.6431 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002216/0.5931, allocations: 1.009 MB / 0.644 GB, free: 3.129 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003215/0.5963, allocations: 1.905 MB / 0.6459 GB, free: 0.832 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006052/0.6024, allocations: 3.2 MB / 0.649 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-05/0.6024, allocations: 11.94 kB / 0.649 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01255/0.6149, allocations: 4.118 MB / 0.6531 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.615, allocations: 19.98 kB / 0.6531 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.734e-05/0.615, allocations: 35.98 kB / 0.6531 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006681/0.6217, allocations: 1.35 MB / 0.6544 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/0.6243, allocations: 0.6553 MB / 0.6551 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/0.6377, allocations: 8.291 MB / 0.6632 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/0.6399, allocations: 99.98 kB / 0.6633 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005115/0.6404, allocations: 167.9 kB / 0.6634 GB, free: 13.94 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.001399/0.6418, allocations: 0.5125 MB / 0.6639 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006327/0.6424, allocations: 210.6 kB / 0.6641 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/0.6539, allocations: 3.863 MB / 0.6679 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/0.654, allocations: 24 kB / 0.6679 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.493e-05/0.654, allocations: 4 kB / 0.6679 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.489e-05/0.654, allocations: 11.95 kB / 0.6679 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.6697, allocations: 6.315 MB / 0.6741 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/0.6697, allocations: 7.938 kB / 0.6741 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/0.6718, allocations: 439.8 kB / 0.6745 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006232/0.6781, allocations: 1.26 MB / 0.6758 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004578/0.6785, allocations: 99.92 kB / 0.6759 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/0.6912, allocations: 7.796 MB / 0.6835 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.6912, allocations: 4 kB / 0.6835 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/0.7058, allocations: 5.017 MB / 0.6884 GB, free: 3.535 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006326/0.7064, allocations: 271.6 kB / 0.6886 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007047/0.7071, allocations: 56 kB / 0.6887 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/0.7089, allocations: 55.98 kB / 0.6887 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000765/0.7097, allocations: 233.7 kB / 0.689 GB, free: 2.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003963/0.7101, allocations: 111.9 kB / 0.6891 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001281/0.7114, allocations: 0.7272 MB / 0.6898 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.7114, allocations: 0 / 0.6898 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005637/0.717, allocations: 1.504 MB / 0.6912 GB, free: 0.5664 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.01771/0.7347, allocations: 7.026 MB / 0.6981 GB, free: 9.375 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008229/0.743, allocations: 3.334 MB / 0.7014 GB, free: 5.953 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.006e-06/0.743, allocations: 0 / 0.7014 GB, free: 5.953 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004342/0.7473, allocations: 1.911 MB / 0.7032 GB, free: 3.977 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.7497, allocations: 406.3 kB / 0.7036 GB, free: 3.586 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2788/1.028, allocations: 20.17 MB / 0.7233 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/1.03, allocations: 1.595 MB / 0.7249 GB, free: 175 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002146/1.032, allocations: 0.5046 MB / 0.7254 GB, free: 175 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001857/1.034, allocations: 1.183 MB / 0.7265 GB, free: 175 MB / 0.5606 GB Notification: Performance of SimCode: time 1.413e-06/1.034, allocations: 0 / 0.7265 GB, free: 175 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1337/1.168, allocations: 74.85 MB / 0.7996 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.35/27.52, allocations: 7.938 kB / 0.7996 GB, free: 125.5 MB / 0.5606 GB " [Timeout remaining time 632] (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 sys.exit(0), Time elapsed: 30.42050317605026] Failed to read output from testmodel.py, exit status != 0: 27.664438971085474 27.680479946 27.223174014 Calling exit ...