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.001371/0.001371, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00144/0.00144, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.436/1.436, allocations: 230.6 MB / 256 MB, free: 7.773 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.1369/0.1369, allocations: 23.88 MB / 336.3 MB, free: 10.95 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.002134/0.002134, allocations: 63.91 kB / 471.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3018, allocations: 59.86 MB / 0.5185 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01047/0.3123, allocations: 10.25 MB / 0.5285 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04011/0.3524, allocations: 29.73 MB / 0.5576 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002211/0.3546, allocations: 39.19 kB / 0.5576 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.3569, allocations: 0.6763 MB / 0.5583 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009515/0.3664, allocations: 2.76 MB / 0.561 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01456/0.381, allocations: 4.513 MB / 0.5654 GB, free: 8.137 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007028/0.388, allocations: 3.422 MB / 0.5687 GB, free: 6.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002421/0.3904, allocations: 1.666 MB / 0.5703 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002354/0.3928, allocations: 1.687 MB / 0.572 GB, free: 2.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002737/0.3955, allocations: 1.681 MB / 0.5736 GB, free: 1.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000603/0.3961, allocations: 324 kB / 0.5739 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01176/0.4079, allocations: 3.545 MB / 0.5774 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.409, allocations: 0.7673 MB / 0.5782 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002126/0.4112, allocations: 1.335 MB / 0.5795 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01681/0.428, allocations: 7.482 MB / 0.5868 GB, free: 3.664 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.428, allocations: 0 / 0.5868 GB, free: 3.664 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.428, allocations: 0 / 0.5868 GB, free: 3.664 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.248e-05/0.428, allocations: 3.938 kB / 0.5868 GB, free: 3.66 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.007446/0.4355, allocations: 3.705 MB / 0.5904 GB, free: 15.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4355, allocations: 12.03 kB / 0.5904 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004717/0.436, allocations: 359.2 kB / 0.5907 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002673/0.4387, allocations: 0.6231 MB / 0.5914 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002981/0.4416, allocations: 1.45 MB / 0.5928 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.4419, allocations: 304.2 kB / 0.5931 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004933/0.4424, allocations: 279.9 kB / 0.5933 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.4478, allocations: 3.157 MB / 0.5964 GB, free: 9.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.191e-05/0.4479, allocations: 3.938 kB / 0.5964 GB, free: 9.586 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002791/0.4481, allocations: 104 kB / 0.5965 GB, free: 9.484 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.604e-05/0.4482, allocations: 64 kB / 0.5966 GB, free: 9.422 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006916/0.4551, allocations: 3.811 MB / 0.6003 GB, free: 5.598 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.017/0.4721, allocations: 8.198 MB / 0.6083 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004991/0.4771, allocations: 2.771 MB / 0.611 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00213/0.4792, allocations: 1.231 MB / 0.6122 GB, free: 9.238 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01459/0.4938, allocations: 6.03 MB / 0.6181 GB, free: 3.168 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.4939, allocations: 56.55 kB / 0.6181 GB, free: 3.105 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000974/0.4949, allocations: 238.5 kB / 0.6184 GB, free: 2.871 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.879e-06/0.4949, allocations: 0 / 0.6184 GB, free: 2.871 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04703/0.5419, allocations: 11.84 MB / 0.6299 GB, free: 6.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.865e-05/0.542, allocations: 77.41 kB / 0.63 GB, free: 6.895 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.5437, allocations: 1.218 MB / 0.6312 GB, free: 5.664 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002888/0.544, allocations: 69.7 kB / 0.6313 GB, free: 5.59 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.545, allocations: 1.188 MB / 0.6324 GB, free: 4.391 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/0.546, allocations: 0.8947 MB / 0.6333 GB, free: 3.488 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009297/0.5469, allocations: 0.5652 MB / 0.6339 GB, free: 2.914 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.5471, allocations: 305.1 kB / 0.6342 GB, free: 2.613 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/0.549, allocations: 1.006 MB / 0.6351 GB, free: 1.605 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002864/0.5519, allocations: 1.909 MB / 0.637 GB, free: 15.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00535/0.5572, allocations: 3.196 MB / 0.6401 GB, free: 11.69 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.05e-05/0.5573, allocations: 8 kB / 0.6401 GB, free: 11.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01097/0.5683, allocations: 4.122 MB / 0.6442 GB, free: 7.492 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.651e-05/0.5683, allocations: 16 kB / 0.6442 GB, free: 7.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.938e-05/0.5683, allocations: 28.38 kB / 0.6442 GB, free: 7.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006294/0.5746, allocations: 1.358 MB / 0.6455 GB, free: 6.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/0.5773, allocations: 0.6514 MB / 0.6462 GB, free: 5.422 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/0.59, allocations: 7.924 MB / 0.6539 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/0.5922, allocations: 95.98 kB / 0.654 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004348/0.5927, allocations: 175.9 kB / 0.6542 GB, free: 12.85 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.001213/0.5939, allocations: 0.5087 MB / 0.6546 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005692/0.5944, allocations: 210.6 kB / 0.6549 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/0.6053, allocations: 3.874 MB / 0.6586 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/0.6053, allocations: 24 kB / 0.6587 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.6053, allocations: 4 kB / 0.6587 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-05/0.6054, allocations: 15.95 kB / 0.6587 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/0.6204, allocations: 5.948 MB / 0.6645 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.6204, allocations: 144 / 0.6645 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/0.6224, allocations: 435.4 kB / 0.6649 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006115/0.6285, allocations: 1.264 MB / 0.6661 GB, free: 344 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003794/0.6289, allocations: 99.92 kB / 0.6662 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.6401, allocations: 7.42 MB / 0.6735 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6401, allocations: 0 / 0.6735 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/0.6529, allocations: 5.024 MB / 0.6784 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005181/0.6534, allocations: 190.5 kB / 0.6786 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/0.6537, allocations: 52 kB / 0.6786 GB, free: 3.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.655, allocations: 59.98 kB / 0.6787 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005646/0.6556, allocations: 237.6 kB / 0.6789 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/0.6558, allocations: 115.9 kB / 0.679 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001044/0.6569, allocations: 0.7311 MB / 0.6797 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6569, allocations: 4 kB / 0.6797 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004117/0.661, allocations: 1.496 MB / 0.6812 GB, free: 408 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.01619/0.6772, allocations: 7.03 MB / 0.6881 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007713/0.6849, allocations: 3.25 MB / 0.6912 GB, free: 5.883 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.6849, allocations: 4 kB / 0.6912 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00428/0.6892, allocations: 1.833 MB / 0.693 GB, free: 4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.6914, allocations: 392.3 kB / 0.6934 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0437/0.7351, allocations: 20.19 MB / 0.7131 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/0.7363, allocations: 1.026 MB / 0.7141 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00219/0.7385, allocations: 0.5124 MB / 0.7146 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001937/0.7405, allocations: 1.183 MB / 0.7158 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of SimCode: time 1.353e-06/0.7405, allocations: 0 / 0.7158 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3359/1.076, allocations: 76.18 MB / 0.7902 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.75/17.82, allocations: 6.391 kB / 0.7902 GB, free: 139.2 MB / 0.5606 GB " [Timeout remaining time 642] (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: 20.600362663157284] Failed to read output from testmodel.py, exit status != 0: 17.99602059694007 18.017385285 17.585319238 Calling exit ...