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.001304/0.001304, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001495/0.001495, allocations: 222.7 kB / 22.26 MB, free: 5.215 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.384/1.384, allocations: 230.6 MB / 256 MB, free: 7.996 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.1552/0.1552, allocations: 23.89 MB / 336.3 MB, free: 11.14 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.001974/0.001974, allocations: 67.89 kB / 471.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3019, allocations: 59.87 MB / 0.5187 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009693/0.3116, allocations: 11.8 MB / 0.5302 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0416/0.3532, allocations: 33.97 MB / 0.5634 GB, free: 8.059 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002148/0.3554, allocations: 38.47 kB / 0.5634 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002076/0.3575, allocations: 0.7548 MB / 0.5641 GB, free: 7.438 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008864/0.3663, allocations: 2.807 MB / 0.5669 GB, free: 5.293 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01359/0.3799, allocations: 4.515 MB / 0.5713 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005458/0.3854, allocations: 3.416 MB / 0.5746 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002263/0.3876, allocations: 1.699 MB / 0.5763 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002326/0.39, allocations: 1.682 MB / 0.5779 GB, free: 13.06 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003123/0.3931, allocations: 1.892 MB / 0.5798 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006607/0.3937, allocations: 328 kB / 0.5801 GB, free: 10.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.012/0.4057, allocations: 3.768 MB / 0.5838 GB, free: 7.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009645/0.4067, allocations: 0.7595 MB / 0.5845 GB, free: 6.309 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0022/0.4089, allocations: 1.579 MB / 0.586 GB, free: 4.723 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01825/0.4272, allocations: 7.502 MB / 0.5934 GB, free: 13.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4272, allocations: 0 / 0.5934 GB, free: 13.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4272, allocations: 0 / 0.5934 GB, free: 13.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.075e-05/0.4272, allocations: 0 / 0.5934 GB, free: 13.19 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.007949/0.4352, allocations: 3.719 MB / 0.597 GB, free: 9.422 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4352, allocations: 12.03 kB / 0.597 GB, free: 9.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004399/0.4357, allocations: 363.2 kB / 0.5974 GB, free: 9.047 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002602/0.4383, allocations: 0.627 MB / 0.598 GB, free: 8.418 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/0.4412, allocations: 1.438 MB / 0.5994 GB, free: 6.945 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002732/0.4414, allocations: 320.1 kB / 0.5997 GB, free: 6.605 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004642/0.4419, allocations: 271.9 kB / 0.5999 GB, free: 6.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00522/0.4471, allocations: 3.132 MB / 0.603 GB, free: 3.137 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.96e-05/0.4472, allocations: 0 / 0.603 GB, free: 3.137 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00025/0.4474, allocations: 112 kB / 0.6031 GB, free: 3.027 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.178e-05/0.4475, allocations: 68 kB / 0.6032 GB, free: 2.961 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006272/0.4537, allocations: 3.858 MB / 0.6069 GB, free: 15.09 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.0183/0.472, allocations: 9.859 MB / 0.6166 GB, free: 4.832 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004875/0.4769, allocations: 2.807 MB / 0.6193 GB, free: 2.031 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002001/0.4789, allocations: 1.238 MB / 0.6205 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01396/0.4929, allocations: 6.365 MB / 0.6267 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/0.4929, allocations: 56.5 kB / 0.6268 GB, free: 10.32 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009262/0.4939, allocations: 230.5 kB / 0.627 GB, free: 10.09 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 3.267e-06/0.4939, allocations: 0 / 0.627 GB, free: 10.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.0447/0.5386, allocations: 11.84 MB / 0.6386 GB, free: 14.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.5386, allocations: 77.41 kB / 0.6387 GB, free: 14.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/0.5403, allocations: 1.168 MB / 0.6398 GB, free: 12.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002166/0.5405, allocations: 65.7 kB / 0.6399 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008863/0.5414, allocations: 1.188 MB / 0.641 GB, free: 11.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008079/0.5422, allocations: 0.8986 MB / 0.6419 GB, free: 10.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008614/0.5431, allocations: 0.5691 MB / 0.6425 GB, free: 10.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5432, allocations: 301.1 kB / 0.6427 GB, free: 9.879 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001823/0.545, allocations: 1.013 MB / 0.6437 GB, free: 8.863 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002644/0.5477, allocations: 1.901 MB / 0.6456 GB, free: 6.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004796/0.5525, allocations: 3.2 MB / 0.6487 GB, free: 2.949 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.5525, allocations: 8 kB / 0.6487 GB, free: 2.941 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01038/0.5629, allocations: 4.126 MB / 0.6527 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.5629, allocations: 16 kB / 0.6528 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.62e-05/0.5629, allocations: 28 kB / 0.6528 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006151/0.5691, allocations: 1.365 MB / 0.6541 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002331/0.5714, allocations: 0.6514 MB / 0.6548 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/0.5835, allocations: 7.979 MB / 0.6625 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/0.5857, allocations: 95.98 kB / 0.6626 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003558/0.586, allocations: 171.9 kB / 0.6628 GB, free: 4.055 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.001075/0.5871, allocations: 0.5169 MB / 0.6633 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004604/0.5875, allocations: 210.8 kB / 0.6635 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/0.5977, allocations: 3.867 MB / 0.6673 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.637e-05/0.5978, allocations: 24 kB / 0.6673 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.5978, allocations: 7.938 kB / 0.6673 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.067e-05/0.5978, allocations: 11.95 kB / 0.6673 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01451/0.6123, allocations: 6.295 MB / 0.6735 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.6123, allocations: 4 kB / 0.6735 GB, free: 8.891 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/0.6142, allocations: 435.8 kB / 0.6739 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00581/0.62, allocations: 1.264 MB / 0.6751 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002709/0.6203, allocations: 99.92 kB / 0.6752 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.6307, allocations: 7.488 MB / 0.6825 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6307, allocations: 4 kB / 0.6825 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/0.6425, allocations: 5.02 MB / 0.6874 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000498/0.643, allocations: 186.8 kB / 0.6876 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003127/0.6433, allocations: 59.98 kB / 0.6877 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/0.6445, allocations: 59.92 kB / 0.6877 GB, free: 9.758 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005153/0.6451, allocations: 241.6 kB / 0.688 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002258/0.6453, allocations: 115.9 kB / 0.6881 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001043/0.6463, allocations: 0.7311 MB / 0.6888 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.6463, allocations: 0 / 0.6888 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004085/0.6504, allocations: 1.5 MB / 0.6903 GB, free: 7.172 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.01463/0.665, allocations: 7.027 MB / 0.6971 GB, free: 15.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00671/0.6717, allocations: 3.239 MB / 0.7003 GB, free: 12.67 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.6717, allocations: 3.938 kB / 0.7003 GB, free: 12.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003491/0.6752, allocations: 1.844 MB / 0.7021 GB, free: 10.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.6771, allocations: 403.9 kB / 0.7025 GB, free: 10.39 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04051/0.7176, allocations: 20.2 MB / 0.7222 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.7191, allocations: 1.599 MB / 0.7238 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002102/0.7212, allocations: 0.5008 MB / 0.7242 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/0.7229, allocations: 1.185 MB / 0.7254 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/0.7229, allocations: 4 kB / 0.7254 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3129/1.036, allocations: 77.33 MB / 0.8009 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.34/26.38, allocations: 9.938 kB / 0.8009 GB, free: 129.3 MB / 0.5606 GB " [Timeout remaining time 633] (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: 29.138040391000686] Failed to read output from testmodel.py, exit status != 0: 26.537275192997186 26.546723975 26.117219111 Calling exit ...