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.001337/0.001337, 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.001556/0.001556, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.417/1.417, allocations: 230.6 MB / 256 MB, free: 7.797 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.1348/0.1348, allocations: 23.98 MB / 336.4 MB, free: 10.86 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: translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") [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.002057/0.002057, allocations: 63.91 kB / 471.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2889, allocations: 59.9 MB / 0.5192 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.0102/0.2991, allocations: 10.24 MB / 0.5292 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0392/0.3383, allocations: 29.74 MB / 0.5583 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002415/0.3407, allocations: 39.56 kB / 0.5583 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002266/0.343, allocations: 0.6793 MB / 0.559 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01261/0.3556, allocations: 2.756 MB / 0.5617 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01363/0.3692, allocations: 4.507 MB / 0.5661 GB, free: 8.234 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005259/0.3745, allocations: 3.429 MB / 0.5694 GB, free: 6.055 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00231/0.3768, allocations: 1.665 MB / 0.571 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.379, allocations: 1.691 MB / 0.5727 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/0.3816, allocations: 1.677 MB / 0.5743 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005334/0.3821, allocations: 324 kB / 0.5746 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01097/0.3931, allocations: 3.549 MB / 0.5781 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009695/0.3941, allocations: 0.7517 MB / 0.5788 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00191/0.396, allocations: 1.338 MB / 0.5801 GB, free: 10.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.4111, allocations: 7.486 MB / 0.5874 GB, free: 3.477 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4112, allocations: 0 / 0.5874 GB, free: 3.477 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4112, allocations: 0 / 0.5874 GB, free: 3.477 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.156e-05/0.4112, allocations: 0 / 0.5874 GB, free: 3.477 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.007449/0.4187, allocations: 3.712 MB / 0.5911 GB, free: 15.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.4187, allocations: 12.03 kB / 0.5911 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002665/0.4214, allocations: 0.6269 MB / 0.5917 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003002/0.4244, allocations: 1.438 MB / 0.5931 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.4246, allocations: 309.4 kB / 0.5934 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004728/0.4251, allocations: 275.9 kB / 0.5937 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005374/0.4305, allocations: 3.161 MB / 0.5967 GB, free: 9.762 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.245e-05/0.4305, allocations: 3.984 kB / 0.5967 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002636/0.4308, allocations: 104 kB / 0.5968 GB, free: 9.656 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.805e-05/0.4309, allocations: 64 kB / 0.5969 GB, free: 9.594 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006343/0.4372, allocations: 3.819 MB / 0.6006 GB, free: 5.762 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.01575/0.4529, allocations: 7.882 MB / 0.6083 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004653/0.4576, allocations: 2.773 MB / 0.611 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001939/0.4595, allocations: 1.234 MB / 0.6122 GB, free: 9.727 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/0.4731, allocations: 6.011 MB / 0.6181 GB, free: 3.676 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.4731, allocations: 52.56 kB / 0.6182 GB, free: 3.617 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008748/0.474, allocations: 226.5 kB / 0.6184 GB, free: 3.395 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.997e-06/0.474, allocations: 4 kB / 0.6184 GB, free: 3.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04274/0.5168, allocations: 11.84 MB / 0.6299 GB, free: 7.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.5168, allocations: 81.34 kB / 0.63 GB, free: 7.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.5183, allocations: 1.111 MB / 0.6311 GB, free: 6.281 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.5184, allocations: 69.7 kB / 0.6312 GB, free: 6.207 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008575/0.5193, allocations: 1.18 MB / 0.6323 GB, free: 5.016 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008012/0.5201, allocations: 0.9064 MB / 0.6332 GB, free: 4.102 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008539/0.5209, allocations: 0.5652 MB / 0.6338 GB, free: 3.527 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5211, allocations: 301.1 kB / 0.6341 GB, free: 3.23 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001803/0.5229, allocations: 1.009 MB / 0.635 GB, free: 2.219 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002572/0.5254, allocations: 1.913 MB / 0.6369 GB, free: 15.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004743/0.5302, allocations: 3.196 MB / 0.64 GB, free: 12.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.297e-05/0.5302, allocations: 11.98 kB / 0.64 GB, free: 12.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009991/0.5402, allocations: 4.111 MB / 0.6441 GB, free: 8.109 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.5402, allocations: 16 kB / 0.6441 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.912e-05/0.5403, allocations: 31.94 kB / 0.6441 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006215/0.5465, allocations: 1.354 MB / 0.6454 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002563/0.549, allocations: 0.6514 MB / 0.6461 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/0.5616, allocations: 7.837 MB / 0.6537 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002186/0.5638, allocations: 103.9 kB / 0.6538 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003398/0.5641, allocations: 171.9 kB / 0.654 GB, free: 13.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.001088/0.5652, allocations: 0.5124 MB / 0.6545 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004561/0.5657, allocations: 206.7 kB / 0.6547 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/0.5761, allocations: 3.865 MB / 0.6584 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/0.5761, allocations: 24 kB / 0.6585 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.5761, allocations: 4 kB / 0.6585 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.848e-05/0.5762, allocations: 15.89 kB / 0.6585 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01372/0.5899, allocations: 5.676 MB / 0.664 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.5899, allocations: 352 / 0.664 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/0.5918, allocations: 443.4 kB / 0.6645 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005741/0.5975, allocations: 1.264 MB / 0.6657 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/0.5977, allocations: 95.94 kB / 0.6658 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.6081, allocations: 7.343 MB / 0.673 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6081, allocations: 4 kB / 0.673 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/0.6198, allocations: 5.016 MB / 0.6779 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004307/0.6202, allocations: 178.9 kB / 0.678 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003009/0.6205, allocations: 48 kB / 0.6781 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.6217, allocations: 63.97 kB / 0.6781 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004562/0.6222, allocations: 241.6 kB / 0.6784 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002158/0.6224, allocations: 111.9 kB / 0.6785 GB, free: 3.801 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009284/0.6233, allocations: 0.6578 MB / 0.6791 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6233, allocations: 0 / 0.6791 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003827/0.6272, allocations: 1.5 MB / 0.6806 GB, free: 1.637 MB / 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.002691/0.6299, allocations: 1.555 MB / 0.6821 GB, free: 72 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00664/0.6365, allocations: 3.249 MB / 0.6853 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6365, allocations: 2 kB / 0.6853 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003464/0.64, allocations: 1.832 MB / 0.6871 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.6417, allocations: 377.8 kB / 0.6874 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008517/0.6502, allocations: 4.843 MB / 0.6921 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.6514, allocations: 1.041 MB / 0.6932 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001926/0.6533, allocations: 496.3 kB / 0.6936 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000817/0.6541, allocations: 352.5 kB / 0.694 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/0.6541, allocations: 4 kB / 0.694 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of Templates: time 0.2753/0.9294, allocations: 57.44 MB / 0.7501 GB, free: 172.1 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (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 & ./Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.309428604319692] Failed to read output from testmodel.py, exit status != 0: 0.938172897323966 0.947221369 0.533747339 Calling exit ...