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.001412/0.001412, allocations: 112.6 kB / 19.73 MB, free: 2.094 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.00164/0.00164, allocations: 215.6 kB / 23.04 MB, free: 4.434 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.469/1.469, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.1434/0.1434, allocations: 23.89 MB / 337.1 MB, free: 11.16 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="cs",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.002076/0.002076, allocations: 70.69 kB / 472 MB, free: 7.648 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3216, allocations: 59.86 MB / 0.5194 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01078/0.3323, allocations: 11.81 MB / 0.5309 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04629/0.3786, allocations: 33.97 MB / 0.5641 GB, free: 8.234 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002458/0.3811, allocations: 38.47 kB / 0.5641 GB, free: 8.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002697/0.3838, allocations: 0.7579 MB / 0.5649 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.3941, allocations: 2.804 MB / 0.5676 GB, free: 5.469 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01426/0.4083, allocations: 4.502 MB / 0.572 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006294/0.4146, allocations: 3.425 MB / 0.5754 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002937/0.4175, allocations: 1.703 MB / 0.577 GB, free: 14.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003473/0.421, allocations: 1.689 MB / 0.5787 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004001/0.425, allocations: 1.884 MB / 0.5805 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009566/0.426, allocations: 324 kB / 0.5808 GB, free: 11.08 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01598/0.442, allocations: 3.779 MB / 0.5845 GB, free: 7.297 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001492/0.4434, allocations: 0.7556 MB / 0.5853 GB, free: 6.539 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003014/0.4465, allocations: 1.583 MB / 0.5868 GB, free: 4.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01844/0.4649, allocations: 7.51 MB / 0.5941 GB, free: 13.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.4649, allocations: 0 / 0.5941 GB, free: 13.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4649, allocations: 0 / 0.5941 GB, free: 13.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.465, allocations: 0 / 0.5941 GB, free: 13.41 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.008572/0.4736, allocations: 3.713 MB / 0.5978 GB, free: 9.645 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4736, allocations: 8.031 kB / 0.5978 GB, free: 9.637 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.957e-05/0.4737, allocations: 73.44 kB / 0.5978 GB, free: 9.562 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004752/0.4742, allocations: 359.2 kB / 0.5982 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002773/0.477, allocations: 0.627 MB / 0.5988 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003035/0.48, allocations: 1.442 MB / 0.6002 GB, free: 7.098 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002976/0.4803, allocations: 308 kB / 0.6005 GB, free: 6.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005644/0.4809, allocations: 275.9 kB / 0.6008 GB, free: 6.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006429/0.4873, allocations: 3.128 MB / 0.6038 GB, free: 3.301 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.098e-05/0.4873, allocations: 7.922 kB / 0.6038 GB, free: 3.293 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.4876, allocations: 108 kB / 0.6039 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.416e-05/0.4877, allocations: 64 kB / 0.604 GB, free: 3.125 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007109/0.4948, allocations: 3.85 MB / 0.6077 GB, free: 15.26 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.01982/0.5146, allocations: 9.874 MB / 0.6174 GB, free: 4.988 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005402/0.52, allocations: 2.812 MB / 0.6201 GB, free: 2.184 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0023/0.5223, allocations: 1.235 MB / 0.6213 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/0.5374, allocations: 6.356 MB / 0.6275 GB, free: 10.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.575e-05/0.5375, allocations: 60.48 kB / 0.6276 GB, free: 10.48 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001135/0.5386, allocations: 234.5 kB / 0.6278 GB, free: 10.25 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 6.082e-06/0.5386, allocations: 0 / 0.6278 GB, free: 10.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04749/0.5861, allocations: 11.84 MB / 0.6394 GB, free: 14.35 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.5862, allocations: 77.41 kB / 0.6395 GB, free: 14.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/0.5879, allocations: 1.164 MB / 0.6406 GB, free: 13.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003937/0.5883, allocations: 73.7 kB / 0.6407 GB, free: 13.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009516/0.5893, allocations: 1.188 MB / 0.6418 GB, free: 11.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001058/0.5903, allocations: 0.8986 MB / 0.6427 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009685/0.5913, allocations: 0.5652 MB / 0.6433 GB, free: 10.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5914, allocations: 309.1 kB / 0.6436 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/0.5934, allocations: 1.009 MB / 0.6445 GB, free: 9.016 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002835/0.5962, allocations: 1.901 MB / 0.6464 GB, free: 6.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005212/0.6015, allocations: 3.196 MB / 0.6495 GB, free: 3.105 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.308e-05/0.6015, allocations: 12 kB / 0.6495 GB, free: 3.094 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01105/0.6125, allocations: 4.118 MB / 0.6536 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.6126, allocations: 16 kB / 0.6536 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.469e-05/0.6126, allocations: 28 kB / 0.6536 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006317/0.6189, allocations: 1.366 MB / 0.6549 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002761/0.6217, allocations: 0.6514 MB / 0.6556 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.6348, allocations: 7.979 MB / 0.6634 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.6373, allocations: 95.98 kB / 0.6634 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000516/0.6378, allocations: 171.9 kB / 0.6636 GB, free: 4.215 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.001381/0.6392, allocations: 0.5208 MB / 0.6641 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006608/0.6398, allocations: 206.6 kB / 0.6643 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/0.651, allocations: 3.867 MB / 0.6681 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.722e-05/0.651, allocations: 24 kB / 0.6681 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.651, allocations: 4 kB / 0.6681 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.669e-05/0.6511, allocations: 11.95 kB / 0.6681 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/0.6676, allocations: 6.307 MB / 0.6743 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.19e-05/0.6677, allocations: 4 kB / 0.6743 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/0.6698, allocations: 435.8 kB / 0.6747 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006169/0.676, allocations: 1.267 MB / 0.6759 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005249/0.6765, allocations: 95.94 kB / 0.676 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01105/0.6876, allocations: 7.486 MB / 0.6834 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.6876, allocations: 7.938 kB / 0.6834 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01266/0.7002, allocations: 5.017 MB / 0.6883 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005065/0.7008, allocations: 190.5 kB / 0.6884 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003827/0.7011, allocations: 52 kB / 0.6885 GB, free: 9.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.7025, allocations: 67.97 kB / 0.6886 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005313/0.703, allocations: 233.6 kB / 0.6888 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002812/0.7033, allocations: 111.9 kB / 0.6889 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001096/0.7044, allocations: 0.735 MB / 0.6896 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7044, allocations: 0 / 0.6896 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004441/0.7088, allocations: 1.504 MB / 0.6911 GB, free: 7.328 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.01623/0.725, allocations: 7.015 MB / 0.6979 GB, free: 148 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007994/0.733, allocations: 3.255 MB / 0.7011 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.733, allocations: 4 kB / 0.7011 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004318/0.7374, allocations: 1.84 MB / 0.7029 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.002479/0.7398, allocations: 397 kB / 0.7033 GB, free: 10.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0457/0.7855, allocations: 20.19 MB / 0.723 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00147/0.787, allocations: 1.595 MB / 0.7246 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002084/0.7891, allocations: 0.5157 MB / 0.7251 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/0.791, allocations: 1.192 MB / 0.7262 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of SimCode: time 9.21e-07/0.791, allocations: 0 / 0.7262 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3407/1.132, allocations: 77.36 MB / 0.8018 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.81/28.94, allocations: 4.062 kB / 0.8018 GB, free: 129.6 MB / 0.5606 GB " [Timeout remaining time 631] (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 os._exit(0), Time elapsed: 32.11819138901774] Failed to read output from testmodel.py, exit status != 0: 29.161645176936872 29.179185799 28.71042185 Calling exit ...