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.001312/0.001312, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001475/0.001475, allocations: 219.8 kB / 22.26 MB, free: 5.125 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.984 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.1419/0.1419, allocations: 23.86 MB / 336.3 MB, free: 11.29 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.00216/0.00216, allocations: 67.89 kB / 471.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3636, allocations: 59.86 MB / 0.5186 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01094/0.3745, allocations: 11.8 MB / 0.5301 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05124/0.4258, allocations: 33.98 MB / 0.5633 GB, free: 8.059 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.4279, allocations: 34.84 kB / 0.5633 GB, free: 8.043 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.4307, allocations: 0.7624 MB / 0.5641 GB, free: 7.434 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009598/0.4403, allocations: 2.803 MB / 0.5668 GB, free: 5.293 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01391/0.4542, allocations: 4.511 MB / 0.5712 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005742/0.4599, allocations: 3.417 MB / 0.5746 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003035/0.463, allocations: 1.702 MB / 0.5762 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003243/0.4662, allocations: 1.683 MB / 0.5779 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004107/0.4703, allocations: 1.888 MB / 0.5797 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009984/0.4713, allocations: 327.9 kB / 0.58 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01425/0.4856, allocations: 3.775 MB / 0.5837 GB, free: 7.18 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.487, allocations: 0.7517 MB / 0.5844 GB, free: 6.426 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003196/0.4902, allocations: 1.583 MB / 0.586 GB, free: 4.836 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01842/0.5086, allocations: 7.506 MB / 0.5933 GB, free: 13.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5086, allocations: 0 / 0.5933 GB, free: 13.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.5086, allocations: 0 / 0.5933 GB, free: 13.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.5088, allocations: 0 / 0.5933 GB, free: 13.3 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.008841/0.5176, allocations: 3.719 MB / 0.5969 GB, free: 9.531 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.5176, allocations: 12.03 kB / 0.597 GB, free: 9.52 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006766/0.5183, allocations: 359.2 kB / 0.5973 GB, free: 9.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002909/0.5212, allocations: 0.6231 MB / 0.5979 GB, free: 8.535 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003225/0.5245, allocations: 1.438 MB / 0.5993 GB, free: 7.062 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.5247, allocations: 312.2 kB / 0.5996 GB, free: 6.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006484/0.5254, allocations: 279.8 kB / 0.5999 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006667/0.5321, allocations: 3.128 MB / 0.6029 GB, free: 3.258 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.116e-05/0.5321, allocations: 3.984 kB / 0.6029 GB, free: 3.254 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003336/0.5325, allocations: 108 kB / 0.603 GB, free: 3.148 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.925e-05/0.5325, allocations: 64 kB / 0.6031 GB, free: 3.086 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007406/0.5399, allocations: 3.862 MB / 0.6069 GB, free: 15.21 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.0208/0.5607, allocations: 9.866 MB / 0.6165 GB, free: 4.945 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005371/0.5661, allocations: 2.812 MB / 0.6193 GB, free: 2.141 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002284/0.5684, allocations: 1.231 MB / 0.6205 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01571/0.5841, allocations: 6.368 MB / 0.6267 GB, free: 10.49 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/0.5841, allocations: 52.56 kB / 0.6267 GB, free: 10.43 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001096/0.5852, allocations: 234.5 kB / 0.6269 GB, free: 10.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 6.132e-06/0.5852, allocations: 4 kB / 0.6269 GB, free: 10.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04845/0.6337, allocations: 11.84 MB / 0.6385 GB, free: 14.31 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.6338, allocations: 81.34 kB / 0.6386 GB, free: 14.22 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.6355, allocations: 1.176 MB / 0.6397 GB, free: 13.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003767/0.6359, allocations: 65.7 kB / 0.6398 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009375/0.6369, allocations: 1.192 MB / 0.641 GB, free: 11.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.6379, allocations: 0.8947 MB / 0.6418 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/0.6389, allocations: 0.5691 MB / 0.6424 GB, free: 10.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.6391, allocations: 305.1 kB / 0.6427 GB, free: 9.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.6411, allocations: 1.006 MB / 0.6437 GB, free: 8.973 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002833/0.6439, allocations: 1.909 MB / 0.6455 GB, free: 6.672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005413/0.6493, allocations: 3.196 MB / 0.6486 GB, free: 3.055 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.115e-05/0.6494, allocations: 8 kB / 0.6487 GB, free: 3.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.0114/0.6607, allocations: 4.118 MB / 0.6527 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.6608, allocations: 18.66 kB / 0.6527 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.487e-05/0.6608, allocations: 28 kB / 0.6527 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006537/0.6674, allocations: 1.366 MB / 0.6541 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/0.67, allocations: 0.6591 MB / 0.6547 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/0.6826, allocations: 7.966 MB / 0.6625 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/0.6848, allocations: 95.98 kB / 0.6626 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005542/0.6854, allocations: 171.9 kB / 0.6627 GB, free: 4.168 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.001371/0.6868, allocations: 0.5172 MB / 0.6632 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006061/0.6874, allocations: 206.6 kB / 0.6634 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/0.6985, allocations: 3.878 MB / 0.6672 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/0.6985, allocations: 24 kB / 0.6672 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/0.6985, allocations: 4 kB / 0.6673 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/0.6985, allocations: 15.89 kB / 0.6673 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01507/0.7136, allocations: 6.307 MB / 0.6734 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.7136, allocations: 0 / 0.6734 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002021/0.7156, allocations: 431.8 kB / 0.6738 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006091/0.7217, allocations: 1.27 MB / 0.6751 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003312/0.7221, allocations: 95.94 kB / 0.6752 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.733, allocations: 7.482 MB / 0.6825 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.811e-05/0.733, allocations: 7.938 kB / 0.6825 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/0.7456, allocations: 5.013 MB / 0.6874 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004952/0.7461, allocations: 190.5 kB / 0.6876 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004294/0.7465, allocations: 56 kB / 0.6876 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.748, allocations: 55.98 kB / 0.6877 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005099/0.7485, allocations: 245.6 kB / 0.6879 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/0.7488, allocations: 111.9 kB / 0.688 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001122/0.7499, allocations: 0.7311 MB / 0.6887 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.7499, allocations: 4 kB / 0.6887 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004219/0.7541, allocations: 1.496 MB / 0.6902 GB, free: 7.289 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.01618/0.7703, allocations: 7.027 MB / 0.697 GB, free: 96 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00755/0.7778, allocations: 3.251 MB / 0.7002 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.7778, allocations: 0 / 0.7002 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003962/0.7818, allocations: 1.847 MB / 0.702 GB, free: 10.88 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.7839, allocations: 392.5 kB / 0.7024 GB, free: 10.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04312/0.8271, allocations: 20.2 MB / 0.7221 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/0.8289, allocations: 1.599 MB / 0.7237 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002068/0.831, allocations: 0.5007 MB / 0.7242 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001773/0.8328, allocations: 1.188 MB / 0.7253 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of SimCode: time 8.72e-07/0.8328, allocations: 0 / 0.7253 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3651/1.198, allocations: 77.32 MB / 0.8009 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.96/28.16, allocations: 10.88 kB / 0.8009 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 sys.exit(0), Time elapsed: 31.162272203946486] Failed to read output from testmodel.py, exit status != 0: 28.3254991970025 28.346209176 27.83321384 Calling exit ...