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.002104/0.002104, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.00266/0.00266, allocations: 216.4 kB / 23.04 MB, free: 5.078 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.519/1.519, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.1477/0.1477, allocations: 23.86 MB / 337.1 MB, free: 11.18 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.002178/0.002178, allocations: 60.14 kB / 472 MB, free: 7.68 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3306, allocations: 59.86 MB / 0.5194 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01064/0.3412, allocations: 11.8 MB / 0.5309 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04454/0.3858, allocations: 33.99 MB / 0.5641 GB, free: 8.082 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002261/0.388, allocations: 34.03 kB / 0.5641 GB, free: 8.066 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002342/0.3904, allocations: 0.7578 MB / 0.5648 GB, free: 7.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00917/0.3995, allocations: 2.804 MB / 0.5676 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01455/0.4141, allocations: 4.509 MB / 0.572 GB, free: 1.867 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005783/0.4199, allocations: 3.42 MB / 0.5753 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002965/0.4228, allocations: 1.699 MB / 0.577 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003653/0.4265, allocations: 1.685 MB / 0.5786 GB, free: 13.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004287/0.4308, allocations: 1.888 MB / 0.5805 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001096/0.4319, allocations: 320 kB / 0.5808 GB, free: 10.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01471/0.4466, allocations: 3.779 MB / 0.5845 GB, free: 7.168 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001691/0.4483, allocations: 0.7595 MB / 0.5852 GB, free: 6.406 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003772/0.452, allocations: 1.579 MB / 0.5868 GB, free: 4.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.4689, allocations: 7.506 MB / 0.5941 GB, free: 13.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.4689, allocations: 4 kB / 0.5941 GB, free: 13.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4689, allocations: 0 / 0.5941 GB, free: 13.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001234/0.469, allocations: 4 kB / 0.5941 GB, free: 13.28 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.4778, allocations: 3.713 MB / 0.5977 GB, free: 9.512 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.4779, allocations: 8.031 kB / 0.5977 GB, free: 9.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.069e-05/0.478, allocations: 69.44 kB / 0.5978 GB, free: 9.434 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004653/0.4784, allocations: 359.2 kB / 0.5981 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002746/0.4812, allocations: 0.6309 MB / 0.5987 GB, free: 8.441 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002958/0.4841, allocations: 1.434 MB / 0.6001 GB, free: 6.973 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002803/0.4844, allocations: 312 kB / 0.6004 GB, free: 6.641 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004979/0.4849, allocations: 275.9 kB / 0.6007 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005623/0.4905, allocations: 3.128 MB / 0.6038 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.784e-05/0.4906, allocations: 4 kB / 0.6038 GB, free: 3.168 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002868/0.4909, allocations: 104 kB / 0.6039 GB, free: 3.066 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.487e-05/0.4909, allocations: 68 kB / 0.6039 GB, free: 3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007005/0.4979, allocations: 3.858 MB / 0.6077 GB, free: 15.13 MB / 462.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.01947/0.5174, allocations: 9.866 MB / 0.6173 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005031/0.5224, allocations: 2.816 MB / 0.6201 GB, free: 2.055 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002151/0.5246, allocations: 1.235 MB / 0.6213 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/0.539, allocations: 6.36 MB / 0.6275 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/0.539, allocations: 48.56 kB / 0.6275 GB, free: 10.36 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001084/0.5401, allocations: 238.5 kB / 0.6278 GB, free: 10.12 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 4.498e-06/0.5401, allocations: 0 / 0.6278 GB, free: 10.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04714/0.5873, allocations: 11.84 MB / 0.6393 GB, free: 14.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.5873, allocations: 77.41 kB / 0.6394 GB, free: 14.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.5892, allocations: 1.172 MB / 0.6406 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003861/0.5896, allocations: 69.7 kB / 0.6406 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009924/0.5906, allocations: 1.188 MB / 0.6418 GB, free: 11.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/0.5917, allocations: 0.9064 MB / 0.6427 GB, free: 10.77 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001163/0.5929, allocations: 0.5652 MB / 0.6432 GB, free: 10.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.593, allocations: 301.1 kB / 0.6435 GB, free: 9.902 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.5951, allocations: 1.006 MB / 0.6445 GB, free: 8.895 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003056/0.5981, allocations: 1.913 MB / 0.6464 GB, free: 6.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005698/0.6038, allocations: 3.192 MB / 0.6495 GB, free: 2.977 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.143e-05/0.6039, allocations: 11.94 kB / 0.6495 GB, free: 2.965 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01125/0.6151, allocations: 4.114 MB / 0.6535 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/0.6151, allocations: 20 kB / 0.6535 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.946e-05/0.6152, allocations: 28 kB / 0.6535 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006619/0.6218, allocations: 1.361 MB / 0.6549 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/0.6247, allocations: 0.6591 MB / 0.6555 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/0.6377, allocations: 7.973 MB / 0.6633 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/0.6401, allocations: 103.9 kB / 0.6634 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006104/0.6407, allocations: 175.9 kB / 0.6636 GB, free: 4.074 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.001488/0.6422, allocations: 0.513 MB / 0.6641 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006812/0.6429, allocations: 206.6 kB / 0.6643 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/0.6541, allocations: 3.855 MB / 0.668 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/0.6542, allocations: 24 kB / 0.6681 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.6542, allocations: 4 kB / 0.6681 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-05/0.6542, allocations: 15.95 kB / 0.6681 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.6699, allocations: 6.314 MB / 0.6742 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.946e-05/0.67, allocations: 4 kB / 0.6742 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/0.6721, allocations: 435.8 kB / 0.6747 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006193/0.6783, allocations: 1.263 MB / 0.6759 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004505/0.6787, allocations: 103.8 kB / 0.676 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.6903, allocations: 7.479 MB / 0.6833 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.6903, allocations: 7.938 kB / 0.6833 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/0.7035, allocations: 5.024 MB / 0.6882 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004964/0.704, allocations: 182.6 kB / 0.6884 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005269/0.7045, allocations: 52 kB / 0.6884 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.706, allocations: 63.97 kB / 0.6885 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00058/0.7066, allocations: 241.6 kB / 0.6887 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002973/0.7069, allocations: 107.9 kB / 0.6888 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001162/0.7081, allocations: 0.7311 MB / 0.6895 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.7081, allocations: 3.938 kB / 0.6895 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00438/0.7125, allocations: 1.504 MB / 0.691 GB, free: 7.199 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.01697/0.7294, allocations: 7.019 MB / 0.6979 GB, free: 12 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009016/0.7385, allocations: 3.259 MB / 0.7011 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.7385, allocations: 0 / 0.7011 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004353/0.7428, allocations: 1.836 MB / 0.7028 GB, free: 10.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.7453, allocations: 399.9 kB / 0.7032 GB, free: 10.42 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04345/0.7887, allocations: 20.21 MB / 0.723 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.7903, allocations: 1.599 MB / 0.7245 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002073/0.7924, allocations: 0.5008 MB / 0.725 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001843/0.7942, allocations: 1.184 MB / 0.7262 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of SimCode: time 8.11e-07/0.7942, allocations: 0 / 0.7262 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3452/1.139, allocations: 77.35 MB / 0.8017 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.02/28.16, allocations: 17.89 kB / 0.8017 GB, free: 129.5 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 os._exit(0), Time elapsed: 31.404187673004344] Failed to read output from testmodel.py, exit status != 0: 28.37384914595168 28.383513795 27.912095438 Calling exit ...