Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ExothermicReaction.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.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ExothermicReaction") translateModel(Chemical.Examples.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ExothermicReaction") [: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.0651/0.0651, allocations: 15.26 MB / 22.55 MB, free: 2.906 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.0009717/0.0009718, allocations: 190.6 kB / 27.31 MB, free: 4.305 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.08/1.08, allocations: 221.4 MB / 253.3 MB, free: 10.58 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.0008483/0.0008484, allocations: 88.67 kB / 308.4 MB, free: 10.6 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.269e-06/5.3e-06, allocations: 1.094 kB / 369 MB, free: 53.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07166, allocations: 54.62 MB / 423.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.3049, allocations: 99.72 MB / 0.5111 GB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001575/0.3051, allocations: 71.27 kB / 0.5112 GB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1473/0.4524, allocations: 66.31 MB / 0.5759 GB, free: 10.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.062e-05/0.4525, allocations: 36 kB / 0.576 GB, free: 10.41 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: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.00435/0.4568, allocations: 2.103 MB / 0.578 GB, free: 8.273 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.4569, allocations: 8.031 kB / 0.578 GB, free: 8.266 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001726/0.4586, allocations: 0.4928 MB / 0.5785 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.4607, allocations: 1.08 MB / 0.5796 GB, free: 6.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.4608, allocations: 131 kB / 0.5797 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002383/0.4611, allocations: 115.9 kB / 0.5798 GB, free: 6.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004997/0.4661, allocations: 4.267 MB / 0.584 GB, free: 2.137 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0032/0.4693, allocations: 2.411 MB / 0.5863 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.4693, allocations: 0 / 0.5863 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.4695, allocations: 3.938 kB / 0.5863 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.314e-05/0.4695, allocations: 44 kB / 0.5864 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/0.4815, allocations: 8.945 MB / 0.5951 GB, free: 6.535 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.4849, allocations: 3.177 MB / 0.5982 GB, free: 3.355 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/0.4865, allocations: 1.432 MB / 0.5996 GB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005844/0.487, allocations: 497.8 kB / 0.6001 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.4871, allocations: 64.17 kB / 0.6001 GB, free: 1.375 MB / 410.7 MB Notification: Performance of pre-optimization done (n=195): time 2.725e-06/0.4871, allocations: 0 / 0.6001 GB, free: 1.375 MB / 410.7 MB Notification: Performance of matching and sorting (n=261): time 0.04528/0.5324, allocations: 13.02 MB / 0.6129 GB, free: 4.281 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.5324, allocations: 103.4 kB / 0.6129 GB, free: 4.164 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000971/0.5334, allocations: 0.8826 MB / 0.6138 GB, free: 3.273 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.5335, allocations: 25.7 kB / 0.6138 GB, free: 3.242 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/0.5338, allocations: 0.5165 MB / 0.6143 GB, free: 2.711 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005829/0.5344, allocations: 0.8428 MB / 0.6152 GB, free: 1.855 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.5345, allocations: 0 / 0.6152 GB, free: 1.855 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.5347, allocations: 459.7 kB / 0.6156 GB, free: 1.398 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/0.5367, allocations: 1.687 MB / 0.6172 GB, free: 15.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002145/0.5389, allocations: 2.004 MB / 0.6192 GB, free: 13.6 MB / 442.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start (fixedTemperature.T = solution_at_constant_temperature.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.004603/0.5435, allocations: 2.334 MB / 0.6215 GB, free: 11.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.5435, allocations: 4 kB / 0.6215 GB, free: 11.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.01358/0.5571, allocations: 5.312 MB / 0.6267 GB, free: 5.906 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.5571, allocations: 4 kB / 0.6267 GB, free: 5.902 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.5571, allocations: 8 kB / 0.6267 GB, free: 5.895 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008348/0.5655, allocations: 1.206 MB / 0.6279 GB, free: 4.672 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/0.5681, allocations: 0.5656 MB / 0.6284 GB, free: 4.105 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01281/0.5809, allocations: 9.331 MB / 0.6375 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/0.5829, allocations: 143.6 kB / 0.6377 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002567/0.5831, allocations: 115.9 kB / 0.6378 GB, free: 10.01 MB / 458.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: A1.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: A1.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: A.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: A.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: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 262 * 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 {(2,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003905/0.5835, allocations: 149 kB / 0.6379 GB, free: 9.855 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/0.5838, allocations: 150.2 kB / 0.6381 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01684/0.6007, allocations: 5.534 MB / 0.6435 GB, free: 4.152 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01513/0.6158, allocations: 4.979 MB / 0.6483 GB, free: 15.15 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.6159, allocations: 0 / 0.6483 GB, free: 15.15 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.551e-05/0.6159, allocations: 15.95 kB / 0.6483 GB, free: 15.13 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0224/0.6383, allocations: 10.52 MB / 0.6586 GB, free: 4.488 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.6383, allocations: 8 kB / 0.6586 GB, free: 4.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/0.6405, allocations: 499.7 kB / 0.6591 GB, free: 3.992 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0115/0.652, allocations: 1.634 MB / 0.6607 GB, free: 2.34 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/0.6522, allocations: 51.88 kB / 0.6607 GB, free: 2.289 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1219/0.7741, allocations: 11.24 MB / 0.6717 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008877/0.783, allocations: 4.21 MB / 0.6758 GB, free: 144 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01676/0.7998, allocations: 8.242 MB / 0.6839 GB, free: 142.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.8001, allocations: 249.1 kB / 0.6841 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.8004, allocations: 20.03 kB / 0.6841 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/0.8018, allocations: 82.56 kB / 0.6842 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/0.802, allocations: 196.9 kB / 0.6844 GB, free: 142.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001477/0.8022, allocations: 98.61 kB / 0.6845 GB, free: 142.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005548/0.8028, allocations: 0.6795 MB / 0.6852 GB, free: 142.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002962/0.8057, allocations: 1.389 MB / 0.6865 GB, free: 142.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 7 ($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 (237): * Single equations (assignments): 231 * 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,(2,100.0%) 12} * Non-linear torn systems: 4 {1 6,4 6,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001608/0.8073, allocations: 1.234 MB / 0.6877 GB, free: 142.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004977/0.8123, allocations: 4.327 MB / 0.6919 GB, free: 141.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.8123, allocations: 3.781 kB / 0.6919 GB, free: 141.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/0.8153, allocations: 2.541 MB / 0.6944 GB, free: 141.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.8165, allocations: 272.9 kB / 0.6947 GB, free: 141.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005791/0.8223, allocations: 4.055 MB / 0.6987 GB, free: 140.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/0.8236, allocations: 1.636 MB / 0.7002 GB, free: 139.4 MB / 474.7 MB Notification: Performance of SimCode: time 2.7e-07/0.8236, allocations: 0 / 0.7002 GB, free: 139.4 MB / 474.7 MB Notification: Performance of Templates: time 0.05596/0.8796, allocations: 50.49 MB / 0.7496 GB, free: 132.6 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.ExothermicReaction.makefile (rm -f Chemical_Chemical.Examples.ExothermicReaction.pipe ; mkfifo Chemical_Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ExothermicReaction.pipe >> ../files/Chemical_Chemical.Examples.ExothermicReaction.sim & ./Chemical_Chemical.Examples.ExothermicReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)