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.001316/0.001316, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001508/0.001508, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.425/1.425, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.138/0.138, allocations: 23.88 MB / 337.1 MB, free: 10.99 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_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.002039/0.002039, allocations: 68.14 kB / 471.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3675, allocations: 59.87 MB / 0.5193 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009663/0.3772, allocations: 10.23 MB / 0.5293 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03791/0.4151, allocations: 29.7 MB / 0.5583 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003419/0.4185, allocations: 38.81 kB / 0.5583 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.421, allocations: 0.6915 MB / 0.559 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.4313, allocations: 2.749 MB / 0.5617 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01415/0.4455, allocations: 4.514 MB / 0.5661 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005638/0.4511, allocations: 3.42 MB / 0.5695 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002885/0.454, allocations: 1.704 MB / 0.5711 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003563/0.4575, allocations: 1.683 MB / 0.5728 GB, free: 2.938 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004587/0.4621, allocations: 1.892 MB / 0.5746 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009752/0.4631, allocations: 324 kB / 0.5749 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.013/0.4761, allocations: 3.635 MB / 0.5785 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001466/0.4776, allocations: 0.7518 MB / 0.5792 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002993/0.4806, allocations: 1.342 MB / 0.5805 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01939/0.5, allocations: 7.49 MB / 0.5878 GB, free: 3.461 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.5, allocations: 0 / 0.5878 GB, free: 3.461 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5, allocations: 0 / 0.5878 GB, free: 3.461 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001615/0.5001, allocations: 0 / 0.5878 GB, free: 3.461 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.00964/0.5098, allocations: 3.7 MB / 0.5914 GB, free: 15.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.5098, allocations: 8.031 kB / 0.5914 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.745e-05/0.5099, allocations: 77.38 kB / 0.5915 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007873/0.5107, allocations: 363.2 kB / 0.5919 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003384/0.5141, allocations: 0.6269 MB / 0.5925 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003757/0.5178, allocations: 1.439 MB / 0.5939 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/0.5182, allocations: 312.1 kB / 0.5942 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008564/0.519, allocations: 267.9 kB / 0.5944 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00743/0.5265, allocations: 3.161 MB / 0.5975 GB, free: 9.324 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.5265, allocations: 0 / 0.5975 GB, free: 9.324 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004557/0.527, allocations: 108 kB / 0.5976 GB, free: 9.219 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.85e-05/0.527, allocations: 68 kB / 0.5977 GB, free: 9.152 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007505/0.5345, allocations: 3.854 MB / 0.6015 GB, free: 5.285 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.0194/0.5539, allocations: 8.198 MB / 0.6095 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005254/0.5592, allocations: 2.776 MB / 0.6122 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002435/0.5616, allocations: 1.231 MB / 0.6134 GB, free: 8.922 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/0.5793, allocations: 6.031 MB / 0.6193 GB, free: 2.852 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.606e-05/0.5793, allocations: 48.56 kB / 0.6193 GB, free: 2.797 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001232/0.5806, allocations: 242.5 kB / 0.6195 GB, free: 2.559 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 7.975e-06/0.5806, allocations: 0 / 0.6195 GB, free: 2.559 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.05034/0.6309, allocations: 11.84 MB / 0.6311 GB, free: 6.672 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.631, allocations: 81.41 kB / 0.6312 GB, free: 6.582 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.6328, allocations: 1.172 MB / 0.6323 GB, free: 5.398 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002763/0.6331, allocations: 65.7 kB / 0.6324 GB, free: 5.328 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.6341, allocations: 1.184 MB / 0.6335 GB, free: 4.133 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/0.6351, allocations: 0.9064 MB / 0.6344 GB, free: 3.219 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/0.6362, allocations: 0.5574 MB / 0.635 GB, free: 2.652 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.6364, allocations: 301.1 kB / 0.6353 GB, free: 2.355 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00207/0.6384, allocations: 1.009 MB / 0.6362 GB, free: 1.344 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00307/0.6415, allocations: 1.916 MB / 0.6381 GB, free: 15.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005835/0.6473, allocations: 3.192 MB / 0.6412 GB, free: 11.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.192e-05/0.6474, allocations: 8 kB / 0.6412 GB, free: 11.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01216/0.6596, allocations: 4.126 MB / 0.6453 GB, free: 7.223 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.899e-05/0.6596, allocations: 16 kB / 0.6453 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.948e-05/0.6597, allocations: 28 kB / 0.6453 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007039/0.6667, allocations: 1.357 MB / 0.6466 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002881/0.6696, allocations: 0.6514 MB / 0.6473 GB, free: 5.156 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/0.6831, allocations: 7.919 MB / 0.655 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/0.6856, allocations: 104 kB / 0.6551 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006782/0.6863, allocations: 171.9 kB / 0.6553 GB, free: 12.59 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.001508/0.6878, allocations: 0.5091 MB / 0.6558 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007047/0.6885, allocations: 202.7 kB / 0.656 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/0.7009, allocations: 3.878 MB / 0.6597 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/0.7009, allocations: 24 kB / 0.6598 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.701, allocations: 4 kB / 0.6598 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.627e-05/0.701, allocations: 15.94 kB / 0.6598 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01578/0.7168, allocations: 5.948 MB / 0.6656 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/0.7168, allocations: 8.031 kB / 0.6656 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002102/0.7189, allocations: 439.4 kB / 0.666 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006509/0.7254, allocations: 1.252 MB / 0.6672 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004595/0.7259, allocations: 103.9 kB / 0.6673 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/0.7378, allocations: 7.423 MB / 0.6746 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.7378, allocations: 4 kB / 0.6746 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/0.7514, allocations: 5.024 MB / 0.6795 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004849/0.7519, allocations: 190.5 kB / 0.6797 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004593/0.7524, allocations: 59.98 kB / 0.6797 GB, free: 2.758 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001571/0.754, allocations: 55.98 kB / 0.6798 GB, free: 2.703 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005697/0.7545, allocations: 237.6 kB / 0.68 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002957/0.7548, allocations: 111.9 kB / 0.6801 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001284/0.7561, allocations: 0.7312 MB / 0.6808 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7561, allocations: 0 / 0.6808 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00427/0.7604, allocations: 1.5 MB / 0.6823 GB, free: 128 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.01671/0.7771, allocations: 7.019 MB / 0.6892 GB, free: 8.938 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007821/0.7849, allocations: 3.259 MB / 0.6923 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.7849, allocations: 0 / 0.6923 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004412/0.7893, allocations: 1.828 MB / 0.6941 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/0.7922, allocations: 408.5 kB / 0.6945 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04722/0.8394, allocations: 20.19 MB / 0.7142 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/0.8408, allocations: 1.029 MB / 0.7152 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002168/0.843, allocations: 0.5124 MB / 0.7157 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/0.8449, allocations: 1.18 MB / 0.7169 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of SimCode: time 9.01e-07/0.8449, allocations: 0 / 0.7169 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3534/1.198, allocations: 76.84 MB / 0.7919 GB, free: 138.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.29/28.49, allocations: 16.06 kB / 0.7919 GB, free: 138.3 MB / 0.5606 GB " [Timeout remaining time 631] (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 os._exit(0), Time elapsed: 31.25844322098419] Failed to read output from testmodel.py, exit status != 0: 28.71389297605492 28.734073097 28.229880667 Calling exit ...