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.001323/0.001323, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001518/0.001518, allocations: 217.1 kB / 22.25 MB, free: 4.855 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.44/1.44, allocations: 230.6 MB / 256 MB, free: 7.801 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.1435/0.1435, allocations: 23.99 MB / 336.4 MB, free: 10.96 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.002125/0.002125, allocations: 71.88 kB / 471.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3524, allocations: 59.88 MB / 0.5187 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009713/0.3622, allocations: 10.25 MB / 0.5287 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04099/0.4031, allocations: 29.73 MB / 0.5578 GB, free: 14.08 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.4054, allocations: 34.72 kB / 0.5578 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.4076, allocations: 0.6879 MB / 0.5585 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009097/0.4167, allocations: 2.756 MB / 0.5612 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01336/0.4301, allocations: 4.507 MB / 0.5656 GB, free: 7.988 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005726/0.4358, allocations: 3.418 MB / 0.5689 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002746/0.4385, allocations: 1.678 MB / 0.5705 GB, free: 4.387 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002992/0.4415, allocations: 1.687 MB / 0.5722 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003646/0.4452, allocations: 1.681 MB / 0.5738 GB, free: 1.008 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006716/0.4458, allocations: 324 kB / 0.5741 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01198/0.4578, allocations: 3.541 MB / 0.5776 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.459, allocations: 0.7595 MB / 0.5783 GB, free: 12.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002105/0.4611, allocations: 1.342 MB / 0.5797 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01758/0.4787, allocations: 7.482 MB / 0.587 GB, free: 3.523 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4787, allocations: 0 / 0.587 GB, free: 3.523 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4787, allocations: 0 / 0.587 GB, free: 3.523 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.722e-05/0.4788, 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.007658/0.4864, allocations: 3.709 MB / 0.5906 GB, free: 15.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.4865, allocations: 12.03 kB / 0.5906 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004709/0.487, allocations: 363.2 kB / 0.5909 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002846/0.4898, allocations: 0.627 MB / 0.5916 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00345/0.4932, allocations: 1.446 MB / 0.593 GB, free: 13.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003137/0.4936, allocations: 304.2 kB / 0.5933 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005822/0.4941, allocations: 272 kB / 0.5935 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005972/0.5001, allocations: 3.157 MB / 0.5966 GB, free: 9.453 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.994e-05/0.5002, allocations: 0 / 0.5966 GB, free: 9.453 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/0.5004, allocations: 104 kB / 0.5967 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-05/0.5005, allocations: 64 kB / 0.5968 GB, free: 9.289 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006962/0.5075, allocations: 3.819 MB / 0.6005 GB, free: 5.457 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.02193/0.5294, allocations: 8.183 MB / 0.6085 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005375/0.5348, allocations: 2.785 MB / 0.6112 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002395/0.5372, allocations: 1.234 MB / 0.6124 GB, free: 9.098 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01468/0.5518, allocations: 6.022 MB / 0.6183 GB, free: 3.035 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.215e-05/0.5519, allocations: 52.56 kB / 0.6183 GB, free: 2.977 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009795/0.5529, allocations: 234.5 kB / 0.6186 GB, free: 2.746 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.409e-06/0.5529, allocations: 4 kB / 0.6186 GB, free: 2.742 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04681/0.5997, allocations: 11.85 MB / 0.6301 GB, free: 6.848 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.5998, allocations: 77.41 kB / 0.6302 GB, free: 6.762 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.6017, allocations: 1.214 MB / 0.6314 GB, free: 5.535 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004673/0.6022, allocations: 69.64 kB / 0.6315 GB, free: 5.461 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.6032, allocations: 1.192 MB / 0.6326 GB, free: 4.258 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/0.6045, allocations: 0.9064 MB / 0.6335 GB, free: 3.344 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008877/0.6054, allocations: 0.5613 MB / 0.6341 GB, free: 2.773 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.6055, allocations: 301.1 kB / 0.6343 GB, free: 2.477 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/0.6075, allocations: 1.009 MB / 0.6353 GB, free: 1.465 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003077/0.6105, allocations: 1.909 MB / 0.6372 GB, free: 15.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005409/0.6159, allocations: 3.2 MB / 0.6403 GB, free: 11.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-05/0.616, allocations: 8 kB / 0.6403 GB, free: 11.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01077/0.6267, allocations: 4.122 MB / 0.6444 GB, free: 7.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.409e-05/0.6268, allocations: 16 kB / 0.6444 GB, free: 7.332 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-05/0.6268, allocations: 28 kB / 0.6444 GB, free: 7.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006309/0.6331, allocations: 1.361 MB / 0.6457 GB, free: 5.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002795/0.6359, allocations: 0.6514 MB / 0.6464 GB, free: 5.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.6489, allocations: 7.921 MB / 0.6541 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.6511, allocations: 104 kB / 0.6542 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003673/0.6515, 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.001125/0.6526, allocations: 0.5086 MB / 0.6549 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004952/0.6531, allocations: 206.6 kB / 0.655 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/0.6634, allocations: 3.871 MB / 0.6588 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.737e-05/0.6635, allocations: 28 kB / 0.6589 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.6635, allocations: 4 kB / 0.6589 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.552e-05/0.6635, allocations: 15.94 kB / 0.6589 GB, free: 7.992 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01461/0.6781, allocations: 5.952 MB / 0.6647 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.6781, allocations: 352 / 0.6647 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.6801, allocations: 439.4 kB / 0.6651 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005882/0.686, allocations: 1.26 MB / 0.6663 GB, free: 196 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004299/0.6864, allocations: 99.92 kB / 0.6664 GB, free: 96 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/0.6974, allocations: 7.407 MB / 0.6737 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.6974, allocations: 7.938 kB / 0.6737 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/0.7098, allocations: 5.02 MB / 0.6786 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000542/0.7103, allocations: 190.6 kB / 0.6788 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/0.7107, allocations: 55.98 kB / 0.6788 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.712, allocations: 63.98 kB / 0.6789 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006349/0.7127, allocations: 237.6 kB / 0.6791 GB, free: 2.605 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003168/0.713, allocations: 111.9 kB / 0.6792 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001251/0.7142, allocations: 0.7312 MB / 0.6799 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7142, allocations: 0 / 0.6799 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005393/0.7196, allocations: 1.5 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.01632/0.7359, allocations: 7.039 MB / 0.6883 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007724/0.7437, allocations: 3.247 MB / 0.6914 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.7437, allocations: 8.062 kB / 0.6914 GB, free: 5.73 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003959/0.7476, allocations: 1.836 MB / 0.6932 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.7497, allocations: 385.2 kB / 0.6936 GB, free: 3.473 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0439/0.7936, allocations: 20.19 MB / 0.7133 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.7949, allocations: 1.029 MB / 0.7143 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002152/0.7971, allocations: 0.5047 MB / 0.7148 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/0.7989, allocations: 1.185 MB / 0.716 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of SimCode: time 1.162e-06/0.7989, allocations: 0 / 0.716 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3566/1.155, allocations: 76.16 MB / 0.7903 GB, free: 139 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/17.79, allocations: 10.53 kB / 0.7904 GB, free: 139 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 & /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: 20.56233048113063] Failed to read output from testmodel.py, exit status != 0: 17.955831076018512 17.974229178 17.491744874 Calling exit ...