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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07258/0.07258, allocations: 15.26 MB / 22.73 MB, free: 0.9453 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.0008321/0.0008321, allocations: 189 kB / 27.52 MB, free: 6.105 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.208/1.208, allocations: 221.5 MB / 253.7 MB, free: 10.38 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.0008127/0.0008128, allocations: 94.28 kB / 308.8 MB, free: 10.46 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.467e-05/1.462e-05, allocations: 2.688 kB / 369.7 MB, free: 53.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07355/0.07358, allocations: 54.63 MB / 424.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3094/0.383, allocations: 102.4 MB / 0.5143 GB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001623/0.3832, allocations: 68.23 kB / 0.5144 GB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2006/0.5838, allocations: 91.83 MB / 0.6041 GB, free: 4.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5839, allocations: 0 / 0.6041 GB, free: 4.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.842e-05/0.584, allocations: 52 kB / 0.6041 GB, free: 4.039 MB / 410.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.005922/0.5899, allocations: 2.79 MB / 0.6068 GB, free: 1.191 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.5899, allocations: 16.02 kB / 0.6069 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002603/0.5926, allocations: 0.6946 MB / 0.6075 GB, free: 488 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002992/0.5956, allocations: 1.411 MB / 0.6089 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.5958, allocations: 168.7 kB / 0.6091 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005113/0.5963, allocations: 155.9 kB / 0.6092 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007764/0.6041, allocations: 6.008 MB / 0.6151 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005191/0.6093, allocations: 3.298 MB / 0.6183 GB, free: 5.309 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.062e-05/0.6093, allocations: 0 / 0.6183 GB, free: 5.309 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001783/0.6095, allocations: 3.953 kB / 0.6183 GB, free: 5.305 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.137e-05/0.6096, allocations: 64 kB / 0.6184 GB, free: 5.242 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01939/0.629, allocations: 12.5 MB / 0.6306 GB, free: 8.363 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004754/0.6338, allocations: 4.447 MB / 0.6349 GB, free: 3.797 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/0.636, allocations: 2.096 MB / 0.637 GB, free: 1.691 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008774/0.6369, allocations: 0.6723 MB / 0.6376 GB, free: 1.016 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.6369, allocations: 56.7 kB / 0.6377 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001118/0.6381, allocations: 205.9 kB / 0.6379 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of pre-optimization done (n=272): time 5.841e-06/0.6381, allocations: 0 / 0.6379 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of matching and sorting (n=415): time 0.07305/0.7111, allocations: 28.26 MB / 0.6655 GB, free: 4.387 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.7112, allocations: 94.53 kB / 0.6656 GB, free: 4.281 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009958/0.7122, allocations: 0.8696 MB / 0.6664 GB, free: 3.395 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.7125, allocations: 25.7 kB / 0.6665 GB, free: 3.363 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005135/0.713, allocations: 0.8962 MB / 0.6673 GB, free: 2.453 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001073/0.7141, allocations: 1.324 MB / 0.6686 GB, free: 1.109 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.7143, allocations: 3.938 kB / 0.6686 GB, free: 1.105 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.7146, allocations: 458.1 kB / 0.6691 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1991/0.9137, allocations: 2.971 MB / 0.672 GB, free: 97.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003961/0.9177, allocations: 3.448 MB / 0.6753 GB, free: 96.99 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007048/0.9247, allocations: 3.84 MB / 0.6791 GB, free: 96.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.9248, allocations: 3.688 kB / 0.6791 GB, free: 96.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=488) (initialization): time 0.01605/0.9408, allocations: 9.142 MB / 0.688 GB, free: 96.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.9409, allocations: 8.656 kB / 0.688 GB, free: 96.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.9409, allocations: 11.03 kB / 0.688 GB, free: 96.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006425/0.9473, allocations: 2.03 MB / 0.69 GB, free: 96.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002975/0.9503, allocations: 0.7164 MB / 0.6907 GB, free: 96.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.962, allocations: 11.01 MB / 0.7015 GB, free: 91.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005985/0.968, allocations: 0.5718 MB / 0.702 GB, free: 91.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003517/0.9684, allocations: 212.8 kB / 0.7022 GB, free: 91.76 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.0006479/0.969, allocations: 189.6 kB / 0.7024 GB, free: 91.65 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01375/0.9828, allocations: 8.392 MB / 0.7106 GB, free: 91.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003688/0.9832, allocations: 212.7 kB / 0.7108 GB, free: 91.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.015/0.9982, allocations: 9.092 MB / 0.7197 GB, free: 90.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01445/1.013, allocations: 8.962 MB / 0.7284 GB, free: 88.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.013, allocations: 3.625 kB / 0.7284 GB, free: 88.64 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.503e-05/1.013, allocations: 22.86 kB / 0.7285 GB, free: 88.64 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02631/1.039, allocations: 21.56 MB / 0.7495 GB, free: 80.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/1.039, allocations: 17.34 kB / 0.7495 GB, free: 80.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.041, allocations: 0.5744 MB / 0.7501 GB, free: 80.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01384/1.055, allocations: 4.461 MB / 0.7544 GB, free: 77.67 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004836/1.055, allocations: 94.23 kB / 0.7545 GB, free: 77.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/1.069, allocations: 11.38 MB / 0.7656 GB, free: 67.57 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03057/1.1, allocations: 18.73 MB / 0.7839 GB, free: 51.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01798/1.118, allocations: 14.29 MB / 0.7979 GB, free: 38.28 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005641/1.118, allocations: 353.8 kB / 0.7982 GB, free: 37.94 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003384/1.119, allocations: 38.7 kB / 0.7983 GB, free: 37.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003414/1.122, allocations: 312.1 kB / 0.7986 GB, free: 37.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000476/1.122, allocations: 365.7 kB / 0.7989 GB, free: 37.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/1.123, allocations: 178 kB / 0.7991 GB, free: 37.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000623/1.123, allocations: 0.655 MB / 0.7997 GB, free: 36.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.123, allocations: 0 / 0.7997 GB, free: 36.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005855/1.129, allocations: 2.517 MB / 0.8022 GB, free: 34.57 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.02098/1.15, allocations: 20.86 MB / 0.8225 GB, free: 15.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008486/1.159, allocations: 7.506 MB / 0.8299 GB, free: 8.461 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.159, allocations: 4 kB / 0.8299 GB, free: 8.457 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006683/1.165, allocations: 4.868 MB / 0.8346 GB, free: 4.238 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/1.168, allocations: 348.8 kB / 0.835 GB, free: 3.973 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/1.18, allocations: 7.849 MB / 0.8426 GB, free: 12.33 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/1.182, allocations: 1.949 MB / 0.8445 GB, free: 10.35 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00205/1.184, allocations: 478.1 kB / 0.845 GB, free: 9.898 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/1.186, allocations: 1.3 MB / 0.8463 GB, free: 8.598 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/1.186, allocations: 0 / 0.8463 GB, free: 8.598 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3088/1.495, allocations: 100 MB / 0.9439 GB, free: 78.79 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001099/1.495, allocations: 113 kB / 0.944 GB, free: 78.59 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.553/6.047, allocations: 0 / 0.944 GB, free: 78.59 MB / 490.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)