Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.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: translateModel(Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.WaterSelfIonization") translateModel(Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.WaterSelfIonization") [: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.06355/0.06355, allocations: 15.26 MB / 22.54 MB, free: 1.113 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.0008667/0.0008667, allocations: 187.8 kB / 27.31 MB, free: 6.188 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.104/1.104, allocations: 221.4 MB / 253.3 MB, free: 10.28 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.0008223/0.0008223, allocations: 88.5 kB / 308.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.829e-06/4.849e-06, allocations: 1.031 kB / 369 MB, free: 53.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07078/0.0708, allocations: 54.64 MB / 423.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2314/0.3023, allocations: 99.33 MB / 0.5107 GB, free: 8.219 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00015/0.3025, allocations: 70.38 kB / 0.5108 GB, free: 8.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1528/0.4552, allocations: 67.92 MB / 0.5771 GB, free: 9.293 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.487e-05/0.4553, allocations: 36 kB / 0.5772 GB, free: 9.258 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.004831/0.4602, allocations: 2.095 MB / 0.5792 GB, free: 7.117 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.4602, allocations: 15.97 kB / 0.5792 GB, free: 7.102 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/0.4622, allocations: 492.8 kB / 0.5797 GB, free: 6.617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.4642, allocations: 1.072 MB / 0.5807 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.4644, allocations: 134.9 kB / 0.5809 GB, free: 5.375 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/0.4647, allocations: 107.9 kB / 0.581 GB, free: 5.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00486/0.4695, allocations: 4.185 MB / 0.5851 GB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003016/0.4726, allocations: 2.279 MB / 0.5873 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.4726, allocations: 4 kB / 0.5873 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.4727, allocations: 0 / 0.5873 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.919e-05/0.4728, allocations: 40 kB / 0.5873 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01174/0.4845, allocations: 8.628 MB / 0.5958 GB, free: 5.926 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003254/0.4878, allocations: 2.973 MB / 0.5987 GB, free: 2.949 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.4894, allocations: 1.46 MB / 0.6001 GB, free: 1.484 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006379/0.49, allocations: 0.4902 MB / 0.6006 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.4901, allocations: 60.55 kB / 0.6006 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of pre-optimization done (n=204): time 3.607e-06/0.4901, allocations: 0 / 0.6006 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.05238/0.5425, allocations: 13.88 MB / 0.6142 GB, free: 3.004 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.5425, allocations: 103.7 kB / 0.6143 GB, free: 2.883 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008481/0.5434, allocations: 0.6481 MB / 0.6149 GB, free: 2.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002762/0.5437, allocations: 29.7 kB / 0.6149 GB, free: 2.195 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.544, allocations: 481.8 kB / 0.6154 GB, free: 1.715 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009533/0.545, allocations: 0.8888 MB / 0.6163 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.5452, allocations: 0 / 0.6163 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002574/0.5455, allocations: 455.8 kB / 0.6167 GB, free: 368 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002366/0.5479, allocations: 1.716 MB / 0.6184 GB, free: 14.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/0.5503, allocations: 1.966 MB / 0.6203 GB, free: 12.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004993/0.5553, allocations: 2.305 MB / 0.6225 GB, free: 10.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.5554, allocations: 0 / 0.6225 GB, free: 10.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.01333/0.5687, allocations: 5.18 MB / 0.6276 GB, free: 5.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.5688, allocations: 12.09 kB / 0.6276 GB, free: 5.078 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.5688, allocations: 7.906 kB / 0.6276 GB, free: 5.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005143/0.5739, allocations: 0.7152 MB / 0.6283 GB, free: 4.336 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/0.5771, allocations: 0.5886 MB / 0.6289 GB, free: 3.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.5883, allocations: 8.089 MB / 0.6368 GB, free: 11.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002614/0.5909, allocations: 143.8 kB / 0.6369 GB, free: 11.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004547/0.5914, allocations: 127.9 kB / 0.6371 GB, free: 10.89 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O_.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: H2O_.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: H2O.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: H2O.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 274 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005325/0.592, allocations: 148.9 kB / 0.6372 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004039/0.5924, allocations: 146.2 kB / 0.6373 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01901/0.6114, allocations: 5.877 MB / 0.6431 GB, free: 4.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01705/0.6285, allocations: 5.324 MB / 0.6483 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/0.6285, allocations: 0 / 0.6483 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.093e-05/0.6285, allocations: 15.94 kB / 0.6483 GB, free: 15.33 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/0.654, allocations: 12.02 MB / 0.66 GB, free: 3.148 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.6541, allocations: 12 kB / 0.66 GB, free: 3.137 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002657/0.6567, allocations: 0.5345 MB / 0.6606 GB, free: 2.602 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01016/0.6669, allocations: 1.459 MB / 0.662 GB, free: 1.125 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.6671, allocations: 51.94 kB / 0.662 GB, free: 1.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1241/0.7913, allocations: 11.17 MB / 0.6729 GB, free: 145.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01049/0.8018, allocations: 4.489 MB / 0.6773 GB, free: 143.2 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01682/0.8186, allocations: 8.804 MB / 0.6859 GB, free: 141.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.819, allocations: 244.2 kB / 0.6862 GB, free: 141.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002473/0.8193, allocations: 26.05 kB / 0.6862 GB, free: 141.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/0.8209, allocations: 93.73 kB / 0.6863 GB, free: 141.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002631/0.8211, allocations: 203.8 kB / 0.6865 GB, free: 141.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/0.8213, allocations: 109.8 kB / 0.6866 GB, free: 141.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004353/0.8218, allocations: 0.5002 MB / 0.6871 GB, free: 141.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003016/0.8248, allocations: 1.436 MB / 0.6885 GB, free: 141.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 8 ($STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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 (264): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,5 8,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001643/0.8264, allocations: 1.255 MB / 0.6897 GB, free: 141 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0052/0.8316, allocations: 4.478 MB / 0.6941 GB, free: 140.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.8316, allocations: 2.719 kB / 0.6941 GB, free: 140.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00313/0.8348, allocations: 2.726 MB / 0.6967 GB, free: 140.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.8361, allocations: 269.4 kB / 0.697 GB, free: 140.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008629/0.8447, allocations: 4.701 MB / 0.7016 GB, free: 138.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/0.8461, allocations: 1.668 MB / 0.7032 GB, free: 138.2 MB / 474.7 MB Notification: Performance of SimCode: time 4.51e-07/0.8461, allocations: 2.062 kB / 0.7032 GB, free: 138.2 MB / 474.7 MB Notification: Performance of Templates: time 0.05748/0.9036, allocations: 51.44 MB / 0.7534 GB, free: 129.3 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.makefile (rm -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.sim & ./Chemical_Chemical.Examples.AcidBase.WaterSelfIonization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)