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.001852/0.001852, allocations: 104.4 kB / 16.45 MB, free: 6.449 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.002096/0.002096, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.424/1.424, allocations: 230.6 MB / 252.8 MB, free: 9.129 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.1288/0.1288, allocations: 23.89 MB / 332.7 MB, free: 12.33 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_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.002118/0.002118, allocations: 63.91 kB / 466.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3164, allocations: 59.83 MB / 0.5136 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01016/0.3265, allocations: 11.76 MB / 0.525 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04357/0.3701, allocations: 33.89 MB / 0.5581 GB, free: 7.816 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002296/0.3724, allocations: 38.91 kB / 0.5582 GB, free: 7.797 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.3746, allocations: 0.7631 MB / 0.5589 GB, free: 7.246 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008866/0.3835, allocations: 2.788 MB / 0.5616 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01554/0.399, allocations: 4.452 MB / 0.566 GB, free: 1.625 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006602/0.4056, allocations: 3.425 MB / 0.5693 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003139/0.4088, allocations: 1.725 MB / 0.571 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003333/0.4121, allocations: 1.682 MB / 0.5727 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003747/0.4159, allocations: 1.896 MB / 0.5745 GB, free: 12.37 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001063/0.4169, allocations: 323.2 kB / 0.5748 GB, free: 12.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01321/0.4301, allocations: 3.772 MB / 0.5785 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001349/0.4315, allocations: 0.7594 MB / 0.5792 GB, free: 7.641 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00305/0.4345, allocations: 1.587 MB / 0.5808 GB, free: 6.047 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01802/0.4525, allocations: 7.498 MB / 0.5881 GB, free: 14.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.4526, allocations: 4 kB / 0.5881 GB, free: 14.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4526, allocations: 0 / 0.5881 GB, free: 14.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.934e-05/0.4526, allocations: 0 / 0.5881 GB, free: 14.52 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.007238/0.4599, allocations: 3.788 MB / 0.5918 GB, free: 10.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.4599, allocations: 8.031 kB / 0.5918 GB, free: 10.65 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004419/0.4603, allocations: 359.2 kB / 0.5922 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002608/0.463, allocations: 0.627 MB / 0.5928 GB, free: 9.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.4655, allocations: 1.518 MB / 0.5943 GB, free: 8.094 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002196/0.4657, allocations: 252.8 kB / 0.5945 GB, free: 7.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004297/0.4662, allocations: 275.9 kB / 0.5948 GB, free: 7.562 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005159/0.4713, allocations: 3.132 MB / 0.5978 GB, free: 4.359 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.082e-05/0.4714, allocations: 3.938 kB / 0.5978 GB, free: 4.355 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002644/0.4716, allocations: 108 kB / 0.5979 GB, free: 4.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.984e-05/0.4717, allocations: 64 kB / 0.598 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006308/0.478, allocations: 3.854 MB / 0.6018 GB, free: 328 kB / 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.01706/0.495, allocations: 9.957 MB / 0.6115 GB, free: 5.973 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005016/0.5001, allocations: 3.339 MB / 0.6147 GB, free: 2.508 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001974/0.502, allocations: 1.231 MB / 0.6159 GB, free: 1.266 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01589/0.5179, allocations: 10.92 MB / 0.6266 GB, free: 5.191 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.518, allocations: 60.48 kB / 0.6267 GB, free: 5.125 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009472/0.5189, allocations: 226.5 kB / 0.6269 GB, free: 4.902 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 3.887e-06/0.5189, allocations: 0 / 0.6269 GB, free: 4.902 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04457/0.5635, allocations: 12.3 MB / 0.6389 GB, free: 8.434 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.5636, allocations: 77.41 kB / 0.639 GB, free: 8.348 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.5652, allocations: 1.164 MB / 0.6401 GB, free: 7.172 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002708/0.5655, allocations: 69.7 kB / 0.6402 GB, free: 7.098 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008741/0.5664, allocations: 1.188 MB / 0.6413 GB, free: 5.898 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000859/0.5672, allocations: 0.9025 MB / 0.6422 GB, free: 4.988 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008606/0.5681, allocations: 0.5613 MB / 0.6428 GB, free: 4.418 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5682, allocations: 309.1 kB / 0.6431 GB, free: 4.113 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001829/0.57, allocations: 1.013 MB / 0.6441 GB, free: 3.098 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00264/0.5727, allocations: 1.901 MB / 0.6459 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00486/0.5775, allocations: 3.207 MB / 0.649 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.5775, allocations: 8 kB / 0.649 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01029/0.5878, allocations: 4.111 MB / 0.6531 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.5879, allocations: 20 kB / 0.6531 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.039e-05/0.5879, allocations: 31.98 kB / 0.6531 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006054/0.594, allocations: 1.358 MB / 0.6544 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/0.5963, allocations: 0.6514 MB / 0.6551 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/0.6083, allocations: 8.287 MB / 0.6632 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/0.6105, allocations: 104 kB / 0.6633 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/0.6109, allocations: 167.9 kB / 0.6634 GB, free: 13.91 MB / 0.5137 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.001073/0.612, allocations: 0.5125 MB / 0.6639 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004676/0.6124, allocations: 210.6 kB / 0.6641 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/0.6227, allocations: 3.867 MB / 0.6679 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/0.6227, allocations: 24 kB / 0.6679 GB, free: 9.215 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.6227, allocations: 8 kB / 0.6679 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/0.6228, allocations: 11.95 kB / 0.6679 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/0.6364, allocations: 6.32 MB / 0.6741 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6364, allocations: 4 kB / 0.6741 GB, free: 2.723 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/0.6382, allocations: 439.4 kB / 0.6745 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005655/0.6439, allocations: 1.26 MB / 0.6758 GB, free: 1.016 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002476/0.6441, allocations: 95.94 kB / 0.6759 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.6544, allocations: 7.796 MB / 0.6835 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6544, allocations: 0 / 0.6835 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.6659, allocations: 5.024 MB / 0.6884 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004945/0.6664, allocations: 271.6 kB / 0.6886 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002842/0.6667, allocations: 56 kB / 0.6887 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.6679, allocations: 51.98 kB / 0.6887 GB, free: 3.113 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005176/0.6685, allocations: 237.7 kB / 0.689 GB, free: 2.879 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002233/0.6687, allocations: 107.9 kB / 0.6891 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009866/0.6697, allocations: 0.7312 MB / 0.6898 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6e-08/0.6697, allocations: 0 / 0.6898 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004143/0.6738, allocations: 1.504 MB / 0.6913 GB, free: 0.5352 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.01454/0.6884, allocations: 7.027 MB / 0.6981 GB, free: 9.348 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006723/0.6951, allocations: 3.325 MB / 0.7014 GB, free: 5.934 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6951, allocations: 0 / 0.7014 GB, free: 5.934 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003553/0.6986, allocations: 1.912 MB / 0.7032 GB, free: 3.957 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.7005, allocations: 403.3 kB / 0.7036 GB, free: 3.566 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2419/0.9424, allocations: 20.18 MB / 0.7233 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.9437, allocations: 1.597 MB / 0.7249 GB, free: 175.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001945/0.9456, allocations: 0.5062 MB / 0.7254 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/0.9471, allocations: 1.183 MB / 0.7265 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.212e-06/0.9471, allocations: 0 / 0.7265 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1244/1.072, allocations: 74.84 MB / 0.7996 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.18/25.25, allocations: 19.73 kB / 0.7996 GB, free: 125.5 MB / 0.5606 GB " [Timeout remaining time 635] (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 sys.exit(0), Time elapsed: 28.055115329800174] Failed to read output from testmodel.py, exit status != 0: 25.38553257100284 25.401860119 24.945805173 Calling exit ...