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.1006/0.1006, allocations: 15.25 MB / 27.81 MB, free: 5.398 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009773/0.0009773, allocations: 188.4 kB / 32.69 MB, free: 0.5156 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.451/1.451, allocations: 221.4 MB / 258.8 MB, free: 72 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008999/0.0008999, allocations: 111.8 kB / 314 MB, free: 15.78 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.801e-05/3.812e-05, allocations: 4 kB / 376.6 MB, free: 1.359 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.313, allocations: 54.61 MB / 431.2 MB, free: 50.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.4431, allocations: 103 MB / 0.5217 GB, free: 12.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.4433, allocations: 69.28 kB / 0.5218 GB, free: 12.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5058/0.9491, allocations: 93.11 MB / 0.6127 GB, free: 90.14 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.9492, allocations: 0 / 0.6127 GB, free: 90.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001665/0.9494, allocations: 49.03 kB / 0.6127 GB, free: 90.14 MB / 442.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.008226/0.9576, allocations: 2.806 MB / 0.6155 GB, free: 88.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.9577, allocations: 7.188 kB / 0.6155 GB, free: 88.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001163/0.9589, allocations: 364.5 kB / 0.6158 GB, free: 88.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003207/0.9621, allocations: 0.6853 MB / 0.6165 GB, free: 88.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003433/0.9655, allocations: 1.412 MB / 0.6179 GB, free: 88.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.9658, allocations: 253.9 kB / 0.6181 GB, free: 88.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008843/0.9667, allocations: 266.2 kB / 0.6184 GB, free: 88.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006297/0.973, allocations: 4.416 MB / 0.6227 GB, free: 87.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.475e-05/0.9731, allocations: 4 kB / 0.6227 GB, free: 87.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.9733, allocations: 105.8 kB / 0.6228 GB, free: 87.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.555e-05/0.9734, allocations: 63.53 kB / 0.6229 GB, free: 87.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006511/0.9799, allocations: 6.154 MB / 0.6289 GB, free: 85.89 MB / 442.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.01893/0.9988, allocations: 12.93 MB / 0.6415 GB, free: 79.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005969/1.005, allocations: 4.562 MB / 0.6459 GB, free: 76.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00357/1.008, allocations: 2.169 MB / 0.6481 GB, free: 75.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001372/1.01, allocations: 0.671 MB / 0.6487 GB, free: 75.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/1.01, allocations: 60.39 kB / 0.6488 GB, free: 75.55 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001843/1.012, allocations: 252.3 kB / 0.649 GB, free: 75.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=272): time 1.043e-05/1.012, allocations: 0 / 0.649 GB, free: 75.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=425): time 0.09344/1.105, allocations: 28.63 MB / 0.677 GB, free: 53.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04154/1.147, allocations: 19.37 MB / 0.6959 GB, free: 33.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/1.148, allocations: 1.013 MB / 0.6969 GB, free: 32.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008272/1.149, allocations: 90.27 kB / 0.697 GB, free: 32.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004831/1.15, allocations: 0.8898 MB / 0.6978 GB, free: 31.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001717/1.151, allocations: 1.413 MB / 0.6992 GB, free: 30.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006633/1.152, allocations: 76 kB / 0.6993 GB, free: 30.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002194/1.152, allocations: 458.3 kB / 0.6997 GB, free: 29.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/1.157, allocations: 3.088 MB / 0.7027 GB, free: 26.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004511/1.161, allocations: 3.594 MB / 0.7063 GB, free: 22.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004882/1.166, allocations: 3.371 MB / 0.7096 GB, free: 19.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.076e-05/1.166, allocations: 4 kB / 0.7096 GB, free: 19.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=498) (initialization): time 0.01804/1.184, allocations: 8.848 MB / 0.7182 GB, free: 10.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/1.184, allocations: 8.625 kB / 0.7182 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.903e-05/1.184, allocations: 17.42 kB / 0.7182 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01074/1.195, allocations: 2.944 MB / 0.7211 GB, free: 7.562 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/1.199, allocations: 0.7365 MB / 0.7218 GB, free: 6.828 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01555/1.214, allocations: 10.86 MB / 0.7324 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007771/1.222, allocations: 0.6513 MB / 0.7331 GB, free: 10.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/1.223, allocations: 219.7 kB / 0.7333 GB, free: 10.65 MB / 458.7 MB 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 (383): * Single equations (assignments): 375 * 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 {5 54,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001602/1.225, allocations: 292.2 kB / 0.7335 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/1.226, allocations: 229.2 kB / 0.7338 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02393/1.25, allocations: 9.168 MB / 0.7427 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02132/1.272, allocations: 8.772 MB / 0.7513 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.222e-05/1.272, allocations: 4 kB / 0.7513 GB, free: 8.133 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001383/1.272, allocations: 23.91 kB / 0.7513 GB, free: 8.109 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3247/1.596, allocations: 21.91 MB / 0.7727 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001174/1.597, allocations: 14.97 kB / 0.7727 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/1.6, allocations: 0.5957 MB / 0.7733 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02827/1.628, allocations: 6.536 MB / 0.7797 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00122/1.629, allocations: 154.1 kB / 0.7798 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01652/1.646, allocations: 10.84 MB / 0.7904 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04187/1.688, allocations: 19.38 MB / 0.8093 GB, free: 97.95 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02273/1.71, allocations: 14.28 MB / 0.8233 GB, free: 90.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/1.711, allocations: 381.2 kB / 0.8236 GB, free: 90.64 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.713, allocations: 100.8 kB / 0.8237 GB, free: 90.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00506/1.718, allocations: 385.3 kB / 0.8241 GB, free: 90.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/1.719, allocations: 375.9 kB / 0.8245 GB, free: 90.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000694/1.719, allocations: 177.1 kB / 0.8246 GB, free: 90.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001211/1.721, allocations: 0.7697 MB / 0.8254 GB, free: 90.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.721, allocations: 0 / 0.8254 GB, free: 90.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008623/1.729, allocations: 2.687 MB / 0.828 GB, free: 89.88 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 (318): * Single equations (assignments): 314 * 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.02616/1.756, allocations: 20.89 MB / 0.8484 GB, free: 71.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01265/1.768, allocations: 7.866 MB / 0.8561 GB, free: 64.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/1.768, allocations: 0 / 0.8561 GB, free: 64.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009325/1.778, allocations: 5.061 MB / 0.861 GB, free: 60.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003137/1.781, allocations: 445.6 kB / 0.8615 GB, free: 59.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/1.799, allocations: 8.366 MB / 0.8696 GB, free: 52.06 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/1.801, allocations: 1.96 MB / 0.8716 GB, free: 50.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002951/1.804, allocations: 0.4904 MB / 0.872 GB, free: 50.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002576/1.807, allocations: 1.307 MB / 0.8733 GB, free: 49.01 MB / 474.7 MB Notification: Performance of SimCode: time 1.322e-06/1.807, allocations: 0 / 0.8733 GB, free: 49.01 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4086/2.215, allocations: 109.3 MB / 0.9801 GB, free: 118.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001381/2.215, allocations: 165.5 kB / 0.9802 GB, free: 117.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.631/7.846, allocations: 0 / 0.9802 GB, free: 117.9 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)