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.001833/0.001833, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002221/0.002221, allocations: 212.5 kB / 23.03 MB, free: 4.922 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.484/1.484, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1405/0.1405, allocations: 23.91 MB / 337.1 MB, free: 10.93 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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: "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_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.002074/0.002074, allocations: 63.91 kB / 471.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.33, allocations: 59.87 MB / 0.5194 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01038/0.3404, allocations: 10.24 MB / 0.5294 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03996/0.3804, allocations: 29.7 MB / 0.5584 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002621/0.383, allocations: 39.81 kB / 0.5584 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002411/0.3854, allocations: 0.6844 MB / 0.5591 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009432/0.3948, allocations: 2.756 MB / 0.5618 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01418/0.409, allocations: 4.51 MB / 0.5662 GB, free: 8.082 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005893/0.4149, allocations: 3.421 MB / 0.5695 GB, free: 6.047 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002976/0.4179, allocations: 1.701 MB / 0.5712 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003206/0.4211, allocations: 1.683 MB / 0.5728 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003451/0.4245, allocations: 1.888 MB / 0.5746 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000742/0.4253, allocations: 324 kB / 0.575 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01122/0.4365, allocations: 3.639 MB / 0.5785 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.4377, allocations: 0.7595 MB / 0.5793 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002609/0.4403, allocations: 1.342 MB / 0.5806 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01827/0.4585, allocations: 7.482 MB / 0.5879 GB, free: 3.359 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4586, allocations: 0 / 0.5879 GB, free: 3.359 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4586, allocations: 0 / 0.5879 GB, free: 3.359 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001296/0.4587, allocations: 0 / 0.5879 GB, free: 3.359 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.008965/0.4676, allocations: 3.705 MB / 0.5915 GB, free: 15.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4677, allocations: 8.031 kB / 0.5915 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.987e-05/0.4678, allocations: 73.44 kB / 0.5916 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006827/0.4685, allocations: 359.2 kB / 0.5919 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003034/0.4715, allocations: 0.6309 MB / 0.5925 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003139/0.4746, allocations: 1.442 MB / 0.5939 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003018/0.4749, allocations: 316 kB / 0.5942 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006504/0.4756, allocations: 267.9 kB / 0.5945 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006411/0.482, allocations: 3.157 MB / 0.5976 GB, free: 9.219 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.465e-05/0.4821, allocations: 3.938 kB / 0.5976 GB, free: 9.215 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000327/0.4824, allocations: 108 kB / 0.5977 GB, free: 9.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.266e-05/0.4824, allocations: 60 kB / 0.5977 GB, free: 9.051 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007138/0.4896, allocations: 3.854 MB / 0.6015 GB, free: 5.184 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.01879/0.5084, allocations: 8.19 MB / 0.6095 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005336/0.5137, allocations: 2.779 MB / 0.6122 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002238/0.5159, allocations: 1.231 MB / 0.6134 GB, free: 8.824 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01555/0.5315, allocations: 6.034 MB / 0.6193 GB, free: 2.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.5315, allocations: 52.5 kB / 0.6194 GB, free: 2.691 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001162/0.5327, allocations: 230.5 kB / 0.6196 GB, free: 2.465 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 6.211e-06/0.5327, allocations: 4 kB / 0.6196 GB, free: 2.461 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.05211/0.5848, allocations: 11.84 MB / 0.6311 GB, free: 6.566 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.633e-05/0.5849, allocations: 81.41 kB / 0.6312 GB, free: 6.477 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/0.5869, allocations: 1.164 MB / 0.6324 GB, free: 5.301 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004302/0.5873, allocations: 69.7 kB / 0.6324 GB, free: 5.227 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009577/0.5883, allocations: 1.188 MB / 0.6336 GB, free: 4.027 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.5894, allocations: 0.9064 MB / 0.6345 GB, free: 3.113 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001235/0.5906, allocations: 0.5613 MB / 0.635 GB, free: 2.543 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.5908, allocations: 301.1 kB / 0.6353 GB, free: 2.246 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002127/0.5929, allocations: 1.009 MB / 0.6363 GB, free: 1.234 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002905/0.5958, allocations: 1.909 MB / 0.6382 GB, free: 14.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005462/0.6013, allocations: 3.196 MB / 0.6413 GB, free: 11.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-05/0.6013, allocations: 8 kB / 0.6413 GB, free: 11.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01172/0.613, allocations: 4.122 MB / 0.6453 GB, free: 7.121 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.6131, allocations: 16 kB / 0.6453 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.638e-05/0.6131, allocations: 28 kB / 0.6454 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006924/0.6201, allocations: 1.364 MB / 0.6467 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002837/0.6229, allocations: 0.6514 MB / 0.6473 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/0.636, allocations: 7.907 MB / 0.655 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/0.6383, allocations: 99.98 kB / 0.6551 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005694/0.6389, allocations: 171.9 kB / 0.6553 GB, free: 12.49 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.001436/0.6403, allocations: 0.515 MB / 0.6558 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006514/0.641, allocations: 210.6 kB / 0.656 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/0.6525, allocations: 3.874 MB / 0.6598 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.208e-05/0.6526, allocations: 24 kB / 0.6598 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/0.6526, allocations: 4 kB / 0.6598 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.966e-05/0.6526, allocations: 15.95 kB / 0.6598 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01624/0.6689, allocations: 5.956 MB / 0.6657 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/0.6689, allocations: 4 kB / 0.6657 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/0.6712, allocations: 435.8 kB / 0.6661 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006641/0.6778, allocations: 1.26 MB / 0.6673 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005637/0.6784, allocations: 95.94 kB / 0.6674 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.6899, allocations: 7.424 MB / 0.6746 GB, free: 8.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.6899, allocations: 8 kB / 0.6746 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/0.7048, allocations: 5.02 MB / 0.6796 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000677/0.7054, allocations: 182.6 kB / 0.6797 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007512/0.7062, allocations: 56 kB / 0.6798 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001929/0.7081, allocations: 59.97 kB / 0.6798 GB, free: 2.613 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007451/0.7089, allocations: 245.6 kB / 0.6801 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004101/0.7093, allocations: 107.9 kB / 0.6802 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001493/0.7108, allocations: 0.7311 MB / 0.6809 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7108, allocations: 0 / 0.6809 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005916/0.7167, allocations: 1.504 MB / 0.6824 GB, free: 28 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.01788/0.7346, allocations: 7.035 MB / 0.6892 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008329/0.7429, allocations: 3.247 MB / 0.6924 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.7429, allocations: 0 / 0.6924 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004385/0.7473, allocations: 1.828 MB / 0.6942 GB, free: 3.633 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/0.7501, allocations: 396.7 kB / 0.6946 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04993/0.8, allocations: 20.21 MB / 0.7143 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001889/0.8019, allocations: 1.033 MB / 0.7153 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00258/0.8045, allocations: 0.4969 MB / 0.7158 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002268/0.8068, allocations: 1.192 MB / 0.717 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of SimCode: time 1.703e-06/0.8068, allocations: 0 / 0.717 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3588/1.166, allocations: 76.83 MB / 0.792 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.44/28.61, allocations: 11.62 kB / 0.792 GB, free: 138.2 MB / 0.5606 GB " [Timeout remaining time 631] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 31.475224587949924] Failed to read output from testmodel.py, exit status != 0: 28.821166315930896 28.832203565 28.370982097 Calling exit ...