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.001326/0.001326, 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.001545/0.001545, allocations: 220.9 kB / 22.25 MB, free: 5.125 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.367/1.367, allocations: 230.6 MB / 256 MB, free: 7.977 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.1325/0.1325, allocations: 23.88 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.001955/0.001955, allocations: 67.89 kB / 471.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3175, allocations: 59.88 MB / 0.5187 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01034/0.3279, allocations: 11.8 MB / 0.5302 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04669/0.3745, allocations: 33.98 MB / 0.5634 GB, free: 8.047 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002656/0.3772, allocations: 35.03 kB / 0.5634 GB, free: 8.031 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.3802, allocations: 0.762 MB / 0.5642 GB, free: 7.422 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01062/0.3908, allocations: 2.803 MB / 0.5669 GB, free: 5.281 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0158/0.4066, allocations: 4.51 MB / 0.5713 GB, free: 1.828 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006822/0.4134, allocations: 3.417 MB / 0.5746 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003688/0.4171, allocations: 1.698 MB / 0.5763 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003818/0.4209, allocations: 1.683 MB / 0.5779 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004384/0.4253, allocations: 1.888 MB / 0.5798 GB, free: 11.19 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001266/0.4266, allocations: 324 kB / 0.5801 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01604/0.4426, allocations: 3.779 MB / 0.5838 GB, free: 7.086 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001418/0.444, allocations: 0.7518 MB / 0.5845 GB, free: 6.332 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003571/0.4476, allocations: 1.583 MB / 0.5861 GB, free: 4.742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02026/0.4679, allocations: 7.502 MB / 0.5934 GB, free: 13.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4679, allocations: 0 / 0.5934 GB, free: 13.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4679, allocations: 0 / 0.5934 GB, free: 13.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001766/0.468, allocations: 0 / 0.5934 GB, free: 13.21 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.00962/0.4777, allocations: 3.723 MB / 0.597 GB, free: 9.438 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.4777, allocations: 12.03 kB / 0.597 GB, free: 9.426 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008303/0.4785, allocations: 355.2 kB / 0.5974 GB, free: 9.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003084/0.4816, allocations: 0.6309 MB / 0.598 GB, free: 8.438 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003431/0.4851, allocations: 1.446 MB / 0.5994 GB, free: 6.957 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.4854, allocations: 308.2 kB / 0.5997 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007389/0.4861, allocations: 279.8 kB / 0.6 GB, free: 6.355 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006864/0.493, allocations: 3.128 MB / 0.603 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.395e-05/0.493, allocations: 0 / 0.603 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003955/0.4934, allocations: 108 kB / 0.6031 GB, free: 3.051 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.867e-05/0.4935, allocations: 64 kB / 0.6032 GB, free: 2.988 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007111/0.5006, allocations: 3.858 MB / 0.6069 GB, free: 15.12 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.01861/0.5192, allocations: 9.867 MB / 0.6166 GB, free: 4.852 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005016/0.5242, allocations: 2.807 MB / 0.6193 GB, free: 2.051 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.5264, allocations: 1.234 MB / 0.6205 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/0.541, allocations: 6.366 MB / 0.6267 GB, free: 10.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.541, allocations: 52.56 kB / 0.6268 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001032/0.542, allocations: 234.5 kB / 0.627 GB, free: 10.11 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 1.102e-05/0.5421, allocations: 4 kB / 0.627 GB, free: 10.11 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04758/0.5896, allocations: 11.84 MB / 0.6386 GB, free: 14.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.5897, allocations: 77.41 kB / 0.6387 GB, free: 14.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.5916, allocations: 1.168 MB / 0.6398 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004101/0.592, allocations: 65.7 kB / 0.6399 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000941/0.5929, allocations: 1.192 MB / 0.641 GB, free: 11.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.594, allocations: 0.8986 MB / 0.6419 GB, free: 10.78 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001182/0.5952, allocations: 0.5691 MB / 0.6425 GB, free: 10.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5953, allocations: 305.1 kB / 0.6427 GB, free: 9.898 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002044/0.5974, allocations: 1.013 MB / 0.6437 GB, free: 8.883 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002831/0.6002, allocations: 1.905 MB / 0.6456 GB, free: 6.586 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005342/0.6055, allocations: 3.2 MB / 0.6487 GB, free: 2.965 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.938e-05/0.6056, allocations: 12 kB / 0.6487 GB, free: 2.953 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.0111/0.6167, allocations: 4.118 MB / 0.6528 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.087e-05/0.6167, allocations: 16 kB / 0.6528 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.303e-05/0.6168, allocations: 28 kB / 0.6528 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006419/0.6232, allocations: 1.362 MB / 0.6541 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.6259, allocations: 0.6552 MB / 0.6548 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.6383, allocations: 7.984 MB / 0.6626 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/0.6405, allocations: 95.98 kB / 0.6627 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005347/0.641, allocations: 171.9 kB / 0.6628 GB, free: 4.07 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.001454/0.6425, allocations: 0.5169 MB / 0.6633 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006681/0.6431, allocations: 206.6 kB / 0.6635 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/0.654, allocations: 3.867 MB / 0.6673 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.6541, allocations: 24 kB / 0.6673 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.6541, allocations: 4 kB / 0.6673 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.454e-05/0.6541, allocations: 15.89 kB / 0.6673 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/0.6696, allocations: 6.291 MB / 0.6735 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.6696, allocations: 4 kB / 0.6735 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001884/0.6715, allocations: 443.3 kB / 0.6739 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005819/0.6773, allocations: 1.265 MB / 0.6751 GB, free: 7.199 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003474/0.6777, allocations: 95.94 kB / 0.6752 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.6885, allocations: 7.494 MB / 0.6826 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.6885, allocations: 7.938 kB / 0.6826 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/0.7013, allocations: 5.013 MB / 0.6875 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005566/0.7019, allocations: 190.5 kB / 0.6876 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005052/0.7024, allocations: 56 kB / 0.6877 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/0.7039, allocations: 55.98 kB / 0.6877 GB, free: 9.773 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005479/0.7044, allocations: 241.6 kB / 0.688 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002967/0.7047, allocations: 111.9 kB / 0.6881 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001225/0.7059, allocations: 0.7389 MB / 0.6888 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6e-08/0.7059, allocations: 0 / 0.6888 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00449/0.7104, allocations: 1.496 MB / 0.6903 GB, free: 7.188 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.01573/0.7262, allocations: 7.022 MB / 0.6971 GB, free: 4 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007072/0.7332, allocations: 3.246 MB / 0.7003 GB, free: 12.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.7332, allocations: 5.875 kB / 0.7003 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00365/0.7369, allocations: 1.839 MB / 0.7021 GB, free: 10.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/0.7391, allocations: 397 kB / 0.7025 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04335/0.7824, allocations: 20.2 MB / 0.7222 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/0.7843, allocations: 1.599 MB / 0.7238 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002194/0.7865, allocations: 0.5007 MB / 0.7243 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001924/0.7884, allocations: 1.192 MB / 0.7254 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of SimCode: time 8.12e-07/0.7884, allocations: 0 / 0.7254 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3498/1.138, allocations: 77.32 MB / 0.8009 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.76/26.89, allocations: 6.812 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 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.625853998819366] Failed to read output from testmodel.py, exit status != 0: 27.051823402987793 27.062525655 26.591981121 Calling exit ...