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.001331/0.001331, allocations: 103.6 kB / 18.95 MB, free: 2.656 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.001501/0.001501, allocations: 217.6 kB / 22.25 MB, free: 5.266 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.466/1.466, allocations: 230.6 MB / 256 MB, free: 7.793 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.1695/0.1695, allocations: 23.88 MB / 336.3 MB, free: 10.95 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.002074/0.002074, allocations: 63.91 kB / 471.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3562, allocations: 59.86 MB / 0.5185 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01432/0.3706, allocations: 10.24 MB / 0.5285 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04981/0.4204, allocations: 29.73 MB / 0.5576 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002461/0.4228, allocations: 39 kB / 0.5576 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002756/0.4256, allocations: 0.6888 MB / 0.5583 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.4359, allocations: 2.748 MB / 0.561 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01418/0.4501, allocations: 4.514 MB / 0.5654 GB, free: 8.047 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006041/0.4562, allocations: 3.42 MB / 0.5687 GB, free: 6.016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002754/0.4589, allocations: 1.711 MB / 0.5704 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003049/0.462, allocations: 1.683 MB / 0.572 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003657/0.4656, allocations: 1.888 MB / 0.5739 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007483/0.4664, allocations: 328 kB / 0.5742 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01189/0.4783, allocations: 3.635 MB / 0.5777 GB, free: 13.01 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.4796, allocations: 0.7595 MB / 0.5785 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002479/0.482, allocations: 1.338 MB / 0.5798 GB, free: 10.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01951/0.5015, allocations: 7.49 MB / 0.5871 GB, free: 3.387 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.405e-06/0.5015, allocations: 0 / 0.5871 GB, free: 3.387 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5016, allocations: 0 / 0.5871 GB, free: 3.387 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001588/0.5017, allocations: 0 / 0.5871 GB, free: 3.387 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.009703/0.5114, allocations: 3.705 MB / 0.5907 GB, free: 15.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.5115, allocations: 8.031 kB / 0.5907 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005074/0.512, allocations: 359.2 kB / 0.5911 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0029/0.5149, allocations: 0.6309 MB / 0.5917 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003257/0.5181, allocations: 1.446 MB / 0.5931 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.5184, allocations: 312.2 kB / 0.5934 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005791/0.519, allocations: 267.9 kB / 0.5936 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005817/0.5248, allocations: 3.161 MB / 0.5967 GB, free: 9.316 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.423e-05/0.5249, allocations: 3.938 kB / 0.5967 GB, free: 9.312 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002798/0.5252, allocations: 108 kB / 0.5968 GB, free: 9.207 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.821e-05/0.5252, allocations: 64 kB / 0.5969 GB, free: 9.145 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006952/0.5322, allocations: 3.807 MB / 0.6006 GB, free: 5.324 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.01938/0.5516, allocations: 8.206 MB / 0.6086 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005253/0.5568, allocations: 2.765 MB / 0.6113 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002329/0.5591, allocations: 1.227 MB / 0.6125 GB, free: 8.969 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01559/0.5747, allocations: 6.037 MB / 0.6184 GB, free: 2.891 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.5748, allocations: 44.56 kB / 0.6185 GB, free: 2.84 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001125/0.5759, allocations: 242.5 kB / 0.6187 GB, free: 2.602 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 7.113e-06/0.5759, allocations: 3.984 kB / 0.6187 GB, free: 2.598 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.05178/0.6277, allocations: 11.84 MB / 0.6303 GB, free: 6.711 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.6278, allocations: 77.41 kB / 0.6303 GB, free: 6.625 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.6296, allocations: 1.218 MB / 0.6315 GB, free: 5.395 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004205/0.63, allocations: 65.7 kB / 0.6316 GB, free: 5.324 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.631, allocations: 1.192 MB / 0.6328 GB, free: 4.121 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/0.6322, allocations: 0.9025 MB / 0.6336 GB, free: 3.211 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009901/0.6332, allocations: 0.5574 MB / 0.6342 GB, free: 2.645 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.6333, allocations: 305.1 kB / 0.6345 GB, free: 2.344 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002039/0.6353, allocations: 1.013 MB / 0.6355 GB, free: 1.328 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002887/0.6382, allocations: 1.909 MB / 0.6373 GB, free: 15.03 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005879/0.6441, allocations: 3.2 MB / 0.6405 GB, free: 11.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.739e-05/0.6441, allocations: 8 kB / 0.6405 GB, free: 11.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01218/0.6563, allocations: 4.114 MB / 0.6445 GB, free: 7.219 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.938e-05/0.6564, allocations: 16 kB / 0.6445 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.156e-05/0.6564, allocations: 32.38 kB / 0.6445 GB, free: 7.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007087/0.6635, allocations: 1.36 MB / 0.6459 GB, free: 5.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002804/0.6663, allocations: 0.6553 MB / 0.6465 GB, free: 5.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/0.6793, allocations: 7.911 MB / 0.6542 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/0.6816, allocations: 99.98 kB / 0.6543 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004371/0.6821, allocations: 167.9 kB / 0.6545 GB, free: 12.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.001193/0.6832, allocations: 0.5218 MB / 0.655 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/0.6838, allocations: 210.6 kB / 0.6552 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/0.6953, allocations: 3.863 MB / 0.659 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.704e-05/0.6953, allocations: 24 kB / 0.659 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.6953, allocations: 8 kB / 0.659 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.834e-05/0.6954, allocations: 15.94 kB / 0.659 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/0.7119, allocations: 5.952 MB / 0.6648 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-05/0.7119, allocations: 4 kB / 0.6648 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/0.7142, allocations: 435.4 kB / 0.6652 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00663/0.7209, allocations: 1.268 MB / 0.6665 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006069/0.7215, allocations: 95.94 kB / 0.6666 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01175/0.7332, allocations: 7.415 MB / 0.6738 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.7332, allocations: 4 kB / 0.6738 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01402/0.7473, allocations: 5.032 MB / 0.6787 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007363/0.748, allocations: 182.6 kB / 0.6789 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004524/0.7484, allocations: 55.98 kB / 0.6789 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.7499, allocations: 59.98 kB / 0.679 GB, free: 2.703 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005927/0.7505, allocations: 237.6 kB / 0.6792 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002844/0.7508, allocations: 107.9 kB / 0.6793 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001127/0.7519, allocations: 0.739 MB / 0.6801 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7519, allocations: 0 / 0.6801 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004952/0.7569, allocations: 1.5 MB / 0.6815 GB, free: 124 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.01735/0.7742, allocations: 7.027 MB / 0.6884 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007955/0.7822, allocations: 3.25 MB / 0.6916 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.7822, allocations: 0 / 0.6916 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004234/0.7864, allocations: 1.841 MB / 0.6934 GB, free: 3.719 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.7885, allocations: 396.9 kB / 0.6937 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04603/0.8345, allocations: 20.18 MB / 0.7134 GB, free: 14 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.8358, allocations: 1.029 MB / 0.7144 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002434/0.8383, allocations: 0.5085 MB / 0.7149 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002096/0.8404, allocations: 1.189 MB / 0.7161 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of SimCode: time 2.245e-06/0.8404, allocations: 4 kB / 0.7161 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3619/1.202, allocations: 77.09 MB / 0.7914 GB, free: 138.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.55/17.75, allocations: 10.28 kB / 0.7914 GB, free: 138.2 MB / 0.5606 GB " [Timeout remaining time 642] (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: 20.55895967502147] Failed to read output from testmodel.py, exit status != 0: 17.92187068698695 17.939371381 17.434024084 Calling exit ...