Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001319/0.001319, allocations: 106.5 kB / 16.45 MB, free: 6.488 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.001568/0.001568, allocations: 216.2 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.499/1.499, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1383/0.1383, allocations: 23.85 MB / 332.7 MB, free: 12.36 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_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.003324/0.003324, allocations: 67.91 kB / 466 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3593, allocations: 59.82 MB / 0.5135 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01059/0.3699, allocations: 11.74 MB / 0.5249 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04406/0.4139, allocations: 33.91 MB / 0.5581 GB, free: 7.859 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002325/0.4162, allocations: 38.5 kB / 0.5581 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.4186, allocations: 0.759 MB / 0.5588 GB, free: 7.297 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009215/0.4278, allocations: 2.783 MB / 0.5616 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01415/0.442, allocations: 4.456 MB / 0.5659 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006342/0.4483, allocations: 3.424 MB / 0.5693 GB, free: 15.64 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003045/0.4514, allocations: 1.726 MB / 0.5709 GB, free: 14.39 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003365/0.4547, allocations: 1.685 MB / 0.5726 GB, free: 13.58 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003974/0.4587, allocations: 1.893 MB / 0.5744 GB, free: 12.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.46, allocations: 322.5 kB / 0.5747 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01609/0.4761, allocations: 3.775 MB / 0.5784 GB, free: 8.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.4778, allocations: 0.7556 MB / 0.5792 GB, free: 7.762 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003136/0.481, allocations: 1.587 MB / 0.5807 GB, free: 6.168 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0198/0.5008, allocations: 7.502 MB / 0.588 GB, free: 14.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.5008, allocations: 0 / 0.588 GB, free: 14.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5008, allocations: 4 kB / 0.588 GB, free: 14.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.5009, allocations: 0 / 0.588 GB, free: 14.63 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.008851/0.5097, allocations: 3.784 MB / 0.5917 GB, free: 10.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.5098, allocations: 12.03 kB / 0.5917 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004992/0.5103, allocations: 363.2 kB / 0.5921 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/0.5131, allocations: 0.6309 MB / 0.5927 GB, free: 9.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003008/0.5162, allocations: 1.51 MB / 0.5942 GB, free: 8.211 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002604/0.5164, allocations: 260.8 kB / 0.5944 GB, free: 7.941 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005596/0.517, allocations: 271.9 kB / 0.5947 GB, free: 7.676 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00597/0.5229, allocations: 3.132 MB / 0.5978 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.465e-05/0.523, allocations: 3.938 kB / 0.5978 GB, free: 4.469 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/0.5233, allocations: 108 kB / 0.5979 GB, free: 4.363 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.397e-05/0.5233, allocations: 64 kB / 0.5979 GB, free: 4.301 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006864/0.5302, allocations: 3.854 MB / 0.6017 GB, free: 444 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.01962/0.5498, allocations: 9.961 MB / 0.6114 GB, free: 6.082 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005324/0.5551, allocations: 3.331 MB / 0.6147 GB, free: 2.625 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.5574, allocations: 1.227 MB / 0.6159 GB, free: 1.387 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01825/0.5757, allocations: 10.93 MB / 0.6265 GB, free: 5.309 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.5757, allocations: 52.56 kB / 0.6266 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001078/0.5768, allocations: 234.5 kB / 0.6268 GB, free: 5.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 4.749e-06/0.5768, allocations: 0 / 0.6268 GB, free: 5.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04995/0.6267, allocations: 12.31 MB / 0.6388 GB, free: 8.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/0.6268, allocations: 77.41 kB / 0.6389 GB, free: 8.457 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.6286, allocations: 1.168 MB / 0.64 GB, free: 7.277 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004085/0.629, allocations: 65.7 kB / 0.6401 GB, free: 7.207 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000916/0.6299, allocations: 1.188 MB / 0.6413 GB, free: 6.008 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009914/0.6309, allocations: 0.8986 MB / 0.6421 GB, free: 5.102 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009295/0.6318, allocations: 0.5691 MB / 0.6427 GB, free: 4.523 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.632, allocations: 305.1 kB / 0.643 GB, free: 4.223 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/0.634, allocations: 1.017 MB / 0.644 GB, free: 3.203 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002867/0.6368, allocations: 1.897 MB / 0.6458 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005311/0.6421, allocations: 3.204 MB / 0.649 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-05/0.6422, allocations: 8 kB / 0.649 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01129/0.6534, allocations: 4.114 MB / 0.653 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.37e-05/0.6535, allocations: 16.38 kB / 0.653 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.851e-05/0.6536, allocations: 32 kB / 0.653 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006458/0.66, allocations: 1.361 MB / 0.6544 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/0.6628, allocations: 0.6552 MB / 0.655 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/0.6759, allocations: 8.289 MB / 0.6631 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/0.6783, allocations: 104 kB / 0.6632 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003947/0.6787, allocations: 171.9 kB / 0.6634 GB, free: 14.02 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.001187/0.6798, allocations: 0.5086 MB / 0.6639 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005336/0.6804, allocations: 206.6 kB / 0.6641 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/0.6914, allocations: 3.863 MB / 0.6678 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/0.6914, allocations: 24 kB / 0.6679 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.6914, allocations: 4 kB / 0.6679 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.584e-05/0.6914, allocations: 15.95 kB / 0.6679 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/0.7069, allocations: 6.32 MB / 0.674 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.611e-05/0.707, allocations: 4 kB / 0.674 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/0.7093, allocations: 435.4 kB / 0.6745 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006205/0.7155, allocations: 1.264 MB / 0.6757 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004329/0.7159, allocations: 95.94 kB / 0.6758 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.7274, allocations: 7.788 MB / 0.6834 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.7274, allocations: 3.938 kB / 0.6834 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/0.7404, allocations: 5.032 MB / 0.6883 GB, free: 3.613 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000767/0.7411, allocations: 267.6 kB / 0.6886 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003506/0.7415, allocations: 56 kB / 0.6886 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.7428, allocations: 55.98 kB / 0.6887 GB, free: 3.223 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005705/0.7434, allocations: 229.7 kB / 0.6889 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/0.7436, allocations: 111.9 kB / 0.689 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001102/0.7447, allocations: 0.7311 MB / 0.6897 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7447, allocations: 0 / 0.6897 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005/0.7497, allocations: 1.504 MB / 0.6912 GB, free: 0.6484 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.01661/0.7663, allocations: 7.029 MB / 0.698 GB, free: 9.457 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007686/0.774, allocations: 3.333 MB / 0.7013 GB, free: 6.035 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.774, allocations: 0 / 0.7013 GB, free: 6.035 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004072/0.7781, allocations: 1.908 MB / 0.7032 GB, free: 4.062 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.7802, allocations: 399.2 kB / 0.7035 GB, free: 3.676 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.295/1.075, allocations: 20.18 MB / 0.7233 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/1.077, allocations: 1.6 MB / 0.7248 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002048/1.079, allocations: 0.5002 MB / 0.7253 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/1.08, allocations: 1.188 MB / 0.7265 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.873e-06/1.08, allocations: 0 / 0.7265 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1307/1.211, allocations: 74.83 MB / 0.7995 GB, free: 125.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.35/27.56, allocations: 7.656 kB / 0.7996 GB, free: 125.7 MB / 0.5606 GB " [Timeout remaining time 632] (rm -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.444409468909726] Failed to read output from testmodel.py, exit status != 0: 27.703893041005358 27.716643245 27.21282925 Calling exit ...