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: "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",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.07519/0.07519, allocations: 15.26 MB / 22.55 MB, free: 1.109 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.0008795/0.0008795, allocations: 187.4 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 221.4 MB / 253.3 MB, free: 10.61 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.0008403/0.0008403, allocations: 88.7 kB / 308.4 MB, free: 10.71 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2203/0.2212, allocations: 60.73 MB / 369.1 MB, free: 53.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08512/0.3063, allocations: 54.63 MB / 423.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2747/0.5811, allocations: 99.72 MB / 0.5112 GB, free: 8.355 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001582/0.5813, allocations: 66.44 kB / 0.5113 GB, free: 8.355 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: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.1681/0.7494, allocations: 68.45 MB / 0.5781 GB, free: 8.383 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.7495, allocations: 8 kB / 0.5781 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/0.7517, allocations: 0.4967 MB / 0.5786 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/0.7543, allocations: 1.076 MB / 0.5797 GB, free: 6.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.7545, allocations: 135 kB / 0.5798 GB, free: 6.625 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/0.7547, allocations: 111.9 kB / 0.5799 GB, free: 6.516 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005227/0.76, allocations: 4.267 MB / 0.5841 GB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003425/0.7634, allocations: 2.407 MB / 0.5864 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.48e-05/0.7634, allocations: 0 / 0.5864 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.7636, allocations: 3.984 kB / 0.5864 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.7636, allocations: 48 kB / 0.5865 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01415/0.7778, allocations: 8.935 MB / 0.5952 GB, free: 6.648 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/0.7815, allocations: 3.193 MB / 0.5983 GB, free: 3.453 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.7832, allocations: 1.432 MB / 0.5997 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006577/0.7838, allocations: 498.7 kB / 0.6002 GB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.7839, allocations: 56.25 kB / 0.6002 GB, free: 1.477 MB / 410.7 MB Notification: Performance of pre-optimization done (n=195): time 3.997e-06/0.7839, allocations: 4 kB / 0.6002 GB, free: 1.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=261): time 0.04959/0.8335, allocations: 13.01 MB / 0.6129 GB, free: 4.391 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.8336, allocations: 107.4 kB / 0.613 GB, free: 4.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.8349, allocations: 0.8865 MB / 0.6139 GB, free: 3.375 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000303/0.8352, allocations: 25.7 kB / 0.6139 GB, free: 3.344 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.8354, allocations: 0.5204 MB / 0.6144 GB, free: 2.812 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006997/0.8361, allocations: 0.835 MB / 0.6153 GB, free: 1.965 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.8363, allocations: 0 / 0.6153 GB, free: 1.965 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.8365, allocations: 459.7 kB / 0.6157 GB, free: 1.508 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/0.8386, allocations: 1.684 MB / 0.6173 GB, free: 15.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002367/0.841, allocations: 2.004 MB / 0.6193 GB, free: 13.71 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.005268/0.8463, allocations: 2.338 MB / 0.6216 GB, free: 11.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.8463, allocations: 4 kB / 0.6216 GB, free: 11.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.01491/0.8612, allocations: 5.307 MB / 0.6268 GB, free: 6.016 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.8613, allocations: 7.938 kB / 0.6268 GB, free: 6.008 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.95e-05/0.8614, allocations: 8.531 kB / 0.6268 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00864/0.87, allocations: 1.21 MB / 0.628 GB, free: 4.773 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003003/0.873, allocations: 0.5656 MB / 0.6285 GB, free: 4.207 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01363/0.8867, allocations: 9.325 MB / 0.6376 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/0.8893, allocations: 143.6 kB / 0.6378 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003248/0.8896, allocations: 119.9 kB / 0.6379 GB, free: 10.11 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.0005006/0.8901, allocations: 156.9 kB / 0.638 GB, free: 9.949 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003456/0.8905, allocations: 146.2 kB / 0.6382 GB, free: 9.805 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01738/0.9079, allocations: 5.533 MB / 0.6436 GB, free: 4.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01699/0.9249, allocations: 4.976 MB / 0.6484 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.501e-05/0.925, allocations: 0 / 0.6484 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.648e-05/0.925, allocations: 19.94 kB / 0.6484 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/0.9497, allocations: 10.5 MB / 0.6587 GB, free: 4.598 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.306e-05/0.9497, allocations: 11.94 kB / 0.6587 GB, free: 4.586 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002517/0.9523, allocations: 0.4915 MB / 0.6592 GB, free: 4.094 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01173/0.964, allocations: 1.643 MB / 0.6608 GB, free: 2.434 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004321/0.9645, allocations: 47.94 kB / 0.6608 GB, free: 2.387 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.148/1.112, allocations: 11.23 MB / 0.6718 GB, free: 146.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009185/1.122, allocations: 4.213 MB / 0.6759 GB, free: 143.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01757/1.139, allocations: 8.247 MB / 0.684 GB, free: 142.1 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01958/1.159, allocations: 10.94 MB / 0.6947 GB, free: 140 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/1.159, allocations: 250.7 kB / 0.6949 GB, free: 139.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002554/1.16, allocations: 18.06 kB / 0.6949 GB, free: 139.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/1.161, allocations: 80.28 kB / 0.695 GB, free: 139.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/1.161, allocations: 183.9 kB / 0.6952 GB, free: 139.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/1.162, allocations: 100.9 kB / 0.6953 GB, free: 139.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006183/1.162, allocations: 0.6783 MB / 0.6959 GB, free: 139.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004294/1.167, allocations: 1.497 MB / 0.6974 GB, free: 139.8 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.002149/1.169, allocations: 1.248 MB / 0.6986 GB, free: 139.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005818/1.175, allocations: 4.327 MB / 0.7028 GB, free: 139.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/1.175, allocations: 0 / 0.7028 GB, free: 139.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003208/1.178, allocations: 2.543 MB / 0.7053 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/1.18, allocations: 260.2 kB / 0.7056 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007008/1.187, allocations: 4.065 MB / 0.7095 GB, free: 137.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/1.188, allocations: 1.656 MB / 0.7112 GB, free: 136.9 MB / 474.7 MB Notification: Performance of SimCode: time 7.61e-07/1.188, allocations: 0 / 0.7112 GB, free: 136.9 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ExothermicReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ExothermicReaction.fmu > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)