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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08499/0.08499, allocations: 15.25 MB / 22.73 MB, free: 0.9414 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.001008/0.001008, allocations: 185 kB / 27.52 MB, free: 6.109 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.274/1.274, allocations: 221.5 MB / 253.7 MB, free: 10.41 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.0009012/0.000901, allocations: 110.4 kB / 308.8 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.76e-05/1.764e-05, allocations: 2.781 kB / 369.7 MB, free: 53.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08457, allocations: 54.64 MB / 424.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3316/0.4162, allocations: 99.8 MB / 0.5118 GB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.4164, allocations: 66.75 kB / 0.5119 GB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1468/0.5633, allocations: 66.15 MB / 0.5765 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.5633, allocations: 0 / 0.5765 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.04e-05/0.5634, allocations: 39.59 kB / 0.5765 GB, free: 0.5117 MB / 378.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.005249/0.5687, allocations: 2.076 MB / 0.5785 GB, free: 14.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.5687, allocations: 19.95 kB / 0.5786 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002664/0.5714, allocations: 484.7 kB / 0.579 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.5752, allocations: 1.071 MB / 0.5801 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.5756, allocations: 131 kB / 0.5802 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006771/0.5763, allocations: 111.9 kB / 0.5803 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008669/0.585, allocations: 4.24 MB / 0.5844 GB, free: 8.301 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003359/0.5884, allocations: 2.403 MB / 0.5868 GB, free: 5.867 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.249e-05/0.5884, allocations: 0 / 0.5868 GB, free: 5.867 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.5886, allocations: 3.984 kB / 0.5868 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.163e-05/0.5886, allocations: 47.95 kB / 0.5868 GB, free: 5.816 MB / 394.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.013/0.6016, allocations: 8.571 MB / 0.5952 GB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005788/0.6074, allocations: 3.919 MB / 0.599 GB, free: 9.141 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.6091, allocations: 1.434 MB / 0.6004 GB, free: 7.707 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007099/0.6098, allocations: 498.8 kB / 0.6009 GB, free: 7.234 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.6099, allocations: 56.59 kB / 0.601 GB, free: 7.172 MB / 410.7 MB Notification: Performance of pre-optimization done (n=195): time 4.699e-06/0.6099, allocations: 0 / 0.601 GB, free: 7.172 MB / 410.7 MB Notification: Performance of matching and sorting (n=261): time 0.04462/0.6545, allocations: 12.9 MB / 0.6136 GB, free: 10.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.6546, allocations: 107.7 kB / 0.6137 GB, free: 10.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.6558, allocations: 0.8826 MB / 0.6145 GB, free: 9.188 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003343/0.6561, allocations: 25.7 kB / 0.6146 GB, free: 9.156 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/0.6565, allocations: 0.6299 MB / 0.6152 GB, free: 8.516 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007991/0.6574, allocations: 0.8389 MB / 0.616 GB, free: 7.664 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.6575, allocations: 4 kB / 0.616 GB, free: 7.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.6577, allocations: 451.8 kB / 0.6164 GB, free: 7.211 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/0.6597, allocations: 1.668 MB / 0.618 GB, free: 5.539 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/0.662, allocations: 1.992 MB / 0.62 GB, free: 3.438 MB / 426.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.004703/0.6667, allocations: 2.287 MB / 0.6222 GB, free: 1.129 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.6668, allocations: 0 / 0.6222 GB, free: 1.129 MB / 426.7 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.01346/0.6802, allocations: 5.228 MB / 0.6273 GB, free: 11.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.6803, allocations: 8 kB / 0.6273 GB, free: 11.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.6803, allocations: 8.531 kB / 0.6273 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007307/0.6876, allocations: 1.18 MB / 0.6285 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/0.6903, allocations: 0.5539 MB / 0.629 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.703, allocations: 9.474 MB / 0.6383 GB, free: 124 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/0.7054, allocations: 187.5 kB / 0.6385 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/0.7057, allocations: 115.9 kB / 0.6386 GB, free: 15.82 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.0004483/0.7061, allocations: 158.3 kB / 0.6387 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0155/0.7217, allocations: 5.145 MB / 0.6438 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006752/0.7224, allocations: 146.2 kB / 0.6439 GB, free: 10.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01625/0.7386, allocations: 5.432 MB / 0.6492 GB, free: 4.879 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01528/0.754, allocations: 4.938 MB / 0.654 GB, free: 15.91 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.669e-05/0.754, allocations: 3.938 kB / 0.654 GB, free: 15.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.528e-05/0.7541, allocations: 19.94 kB / 0.654 GB, free: 15.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02337/0.7775, allocations: 10.48 MB / 0.6643 GB, free: 5.266 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.482e-05/0.7776, allocations: 11.94 kB / 0.6643 GB, free: 5.254 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/0.7798, allocations: 492.2 kB / 0.6648 GB, free: 4.773 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01027/0.7901, allocations: 1.636 MB / 0.6664 GB, free: 3.121 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003969/0.7905, allocations: 47.94 kB / 0.6664 GB, free: 3.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2165/1.007, allocations: 11.42 MB / 0.6776 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008489/1.016, allocations: 4.311 MB / 0.6818 GB, free: 107.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01768/1.033, allocations: 8.14 MB / 0.6897 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004054/1.034, allocations: 248.9 kB / 0.69 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/1.034, allocations: 18.22 kB / 0.69 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/1.035, allocations: 108.8 kB / 0.6901 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003877/1.036, allocations: 240.4 kB / 0.6903 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/1.036, allocations: 98.97 kB / 0.6904 GB, free: 106.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005644/1.036, allocations: 0.6763 MB / 0.6911 GB, free: 106 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.036, allocations: 2.719 kB / 0.6911 GB, free: 106 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003349/1.04, allocations: 1.406 MB / 0.6924 GB, free: 106 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.01715/1.057, allocations: 12.68 MB / 0.7048 GB, free: 101 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004375/1.061, allocations: 4.265 MB / 0.709 GB, free: 100.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.061, allocations: 5.781 kB / 0.709 GB, free: 100.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002986/1.064, allocations: 2.641 MB / 0.7116 GB, free: 100 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/1.066, allocations: 281.7 kB / 0.7118 GB, free: 100 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006117/1.072, allocations: 4.557 MB / 0.7163 GB, free: 98.62 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006496/1.073, allocations: 1.454 MB / 0.7177 GB, free: 97.89 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001145/1.074, allocations: 324.7 kB / 0.718 GB, free: 97.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008778/1.075, allocations: 0.7741 MB / 0.7188 GB, free: 97.85 MB / 474.7 MB Notification: Performance of SimCode: time 3.2e-07/1.075, allocations: 0 / 0.7188 GB, free: 97.85 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08506/1.16, allocations: 60.78 MB / 0.7781 GB, free: 64.99 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/1.16, allocations: 120.4 kB / 0.7783 GB, free: 64.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.039/5.199, allocations: 0 / 0.7783 GB, free: 64.8 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)