Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07451/0.07451, allocations: 15.26 MB / 22.55 MB, free: 1.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009656/0.0009656, allocations: 191.5 kB / 27.31 MB, free: 6.184 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 221.4 MB / 253.3 MB, free: 10.65 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008774/0.0008773, allocations: 92.55 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.2029/0.2038, allocations: 60.74 MB / 369.1 MB, free: 54.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.2833, allocations: 54.63 MB / 423.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2661/0.5494, allocations: 102.3 MB / 0.5137 GB, free: 8.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001677/0.5496, allocations: 65.89 kB / 0.5138 GB, free: 8.281 MB / 362.7 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.2283/0.7779, allocations: 95.03 MB / 0.6066 GB, free: 12.28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.778, allocations: 8 kB / 0.6066 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003041/0.781, allocations: 0.7219 MB / 0.6073 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003104/0.7842, allocations: 1.409 MB / 0.6087 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.7844, allocations: 164.7 kB / 0.6088 GB, free: 9.934 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005644/0.785, allocations: 163.9 kB / 0.609 GB, free: 9.773 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008136/0.7931, allocations: 6.031 MB / 0.6149 GB, free: 3.734 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005742/0.7989, allocations: 3.314 MB / 0.6181 GB, free: 364 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.633e-05/0.799, allocations: 4 kB / 0.6181 GB, free: 360 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002491/0.7992, allocations: 3.906 kB / 0.6181 GB, free: 356 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.166e-05/0.7993, allocations: 64 kB / 0.6182 GB, free: 292 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02141/0.8207, allocations: 12.66 MB / 0.6305 GB, free: 3.387 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002931/0.8237, allocations: 2.276 MB / 0.6328 GB, free: 1.105 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002553/0.8262, allocations: 2.097 MB / 0.6348 GB, free: 15 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001004/0.8273, allocations: 0.6668 MB / 0.6355 GB, free: 14.35 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/0.8273, allocations: 72.97 kB / 0.6355 GB, free: 14.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=272): time 4.618e-06/0.8273, allocations: 0 / 0.6355 GB, free: 14.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=415): time 0.08828/0.9156, allocations: 28.76 MB / 0.6636 GB, free: 1.48 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.9157, allocations: 90.53 kB / 0.6637 GB, free: 1.379 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.9171, allocations: 0.8812 MB / 0.6646 GB, free: 492 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005499/0.9177, allocations: 25.7 kB / 0.6646 GB, free: 460 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1321/1.05, allocations: 0.7358 MB / 0.6653 GB, free: 132.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.051, allocations: 1.324 MB / 0.6666 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/1.051, allocations: 0 / 0.6666 GB, free: 131.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/1.052, allocations: 449 kB / 0.667 GB, free: 131.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00325/1.055, allocations: 3.005 MB / 0.67 GB, free: 131.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003404/1.058, allocations: 3.474 MB / 0.6734 GB, free: 130.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006806/1.065, allocations: 3.919 MB / 0.6772 GB, free: 130.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/1.065, allocations: 0 / 0.6772 GB, free: 130.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=488) (initialization): time 0.01813/1.083, allocations: 9.345 MB / 0.6863 GB, free: 130.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/1.083, allocations: 3.969 kB / 0.6863 GB, free: 130.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/1.083, allocations: 12.22 kB / 0.6863 GB, free: 130.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007632/1.091, allocations: 2.06 MB / 0.6883 GB, free: 130.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003581/1.095, allocations: 0.7207 MB / 0.689 GB, free: 130.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/1.108, allocations: 10.95 MB / 0.6997 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007459/1.116, allocations: 430.9 kB / 0.7001 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004677/1.116, allocations: 215 kB / 0.7004 GB, free: 125.4 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pb.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PbO2.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real voltage:DUMMY_STATE() type: Real H.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real H.solution.v:DUMMY_STATE(flow=false unit = "V" ) "Electric potential in the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (373): * Single equations (assignments): 365 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {4 55,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006925/1.117, allocations: 174.7 kB / 0.7005 GB, free: 125.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004549/1.117, allocations: 211 kB / 0.7007 GB, free: 125.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/1.135, allocations: 9.352 MB / 0.7099 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01677/1.151, allocations: 9.122 MB / 0.7188 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-05/1.151, allocations: 6.188 kB / 0.7188 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.89e-05/1.151, allocations: 28.3 kB / 0.7188 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03047/1.182, allocations: 21.61 MB / 0.7399 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.25e-05/1.182, allocations: 14.31 kB / 0.7399 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/1.184, allocations: 0.5835 MB / 0.7405 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01659/1.201, allocations: 4.416 MB / 0.7448 GB, free: 116.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005833/1.202, allocations: 98.67 kB / 0.7449 GB, free: 116.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01686/1.219, allocations: 11.72 MB / 0.7563 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03617/1.255, allocations: 18.56 MB / 0.7745 GB, free: 97.56 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02117/1.276, allocations: 14.54 MB / 0.7887 GB, free: 84.25 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02388/1.3, allocations: 19.28 MB / 0.8075 GB, free: 66.54 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/1.301, allocations: 355.6 kB / 0.8078 GB, free: 66.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005887/1.301, allocations: 28.64 kB / 0.8078 GB, free: 66.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003862/1.305, allocations: 227.5 kB / 0.8081 GB, free: 66.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005663/1.306, allocations: 311.3 kB / 0.8084 GB, free: 65.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004463/1.306, allocations: 176.4 kB / 0.8085 GB, free: 65.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0008307/1.307, allocations: 0.658 MB / 0.8092 GB, free: 65.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007191/1.314, allocations: 2.63 MB / 0.8117 GB, free: 62.78 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 10 ($STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (308): * Single equations (assignments): 304 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 1 {16 101} Notification: Performance of Backend phase and start with SimCode phase: time 0.003319/1.318, allocations: 1.589 MB / 0.8133 GB, free: 61.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01198/1.33, allocations: 7.629 MB / 0.8207 GB, free: 54.86 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/1.33, allocations: 4 kB / 0.8207 GB, free: 54.86 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007461/1.337, allocations: 4.689 MB / 0.8253 GB, free: 50.69 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/1.34, allocations: 345.2 kB / 0.8257 GB, free: 50.43 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/1.351, allocations: 6.958 MB / 0.8325 GB, free: 43.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002441/1.354, allocations: 2.284 MB / 0.8347 GB, free: 42.17 MB / 474.7 MB Notification: Performance of SimCode: time 6.51e-07/1.354, allocations: 0 / 0.8347 GB, free: 42.17 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)