Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008816/0.008816, allocations: 100.7 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 195.8 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2776/0.2776, allocations: 15.31 MB / 305.8 MB, free: 15.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 59.91 kB / 425.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3676, allocations: 53.62 MB / 478.8 MB, free: 25.88 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.SimpleReaction): time 0.03573/0.4034, allocations: 23.8 MB / 0.4908 GB, free: 10.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008478/0.4119, allocations: 7.967 MB / 0.4986 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007881/0.4127, allocations: 11.94 kB / 0.4986 GB, free: 2.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006301/0.4134, allocations: 186.5 kB / 0.4988 GB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001684/0.4151, allocations: 0.6825 MB / 0.4995 GB, free: 1.969 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00292/0.418, allocations: 1.029 MB / 0.5005 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.4194, allocations: 0.9317 MB / 0.5014 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007261/0.4201, allocations: 0.5057 MB / 0.5019 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00048/0.4206, allocations: 462.7 kB / 0.5023 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006363/0.4213, allocations: 0.4905 MB / 0.5028 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.4214, allocations: 80 kB / 0.5029 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002392/0.4238, allocations: 0.862 MB / 0.5037 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.424, allocations: 187.4 kB / 0.5039 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.4244, allocations: 422 kB / 0.5043 GB, free: 13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002804/0.4272, allocations: 1.763 MB / 0.506 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.4272, allocations: 0 / 0.506 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4273, allocations: 0 / 0.506 GB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.4273, allocations: 0 / 0.506 GB, free: 11.23 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002185/0.4295, allocations: 1.17 MB / 0.5072 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.4295, allocations: 8.031 kB / 0.5072 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.4302, allocations: 151.7 kB / 0.5073 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007978/0.431, allocations: 483.3 kB / 0.5078 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.4311, allocations: 76.27 kB / 0.5078 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.4312, allocations: 72.38 kB / 0.5079 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.4326, allocations: 0.7777 MB / 0.5087 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.4326, allocations: 0 / 0.5087 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.479e-05/0.4327, allocations: 28 kB / 0.5087 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.4327, allocations: 16 kB / 0.5087 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.4341, allocations: 0.8757 MB / 0.5096 GB, free: 7.48 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.004002/0.4381, allocations: 2.575 MB / 0.5121 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.4397, allocations: 1.013 MB / 0.5131 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.4402, allocations: 310.4 kB / 0.5134 GB, free: 3.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003884/0.4441, allocations: 2.832 MB / 0.5161 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.4441, allocations: 46.44 kB / 0.5162 GB, free: 176 kB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.445e-06/0.4441, allocations: 0 / 0.5162 GB, free: 176 kB / 382.1 MB Notification: Performance of matching and sorting (n=46): time 0.002472/0.4466, allocations: 1.224 MB / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.4466, allocations: 55.41 kB / 0.5174 GB, free: 14.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004252/0.4471, allocations: 413.8 kB / 0.5178 GB, free: 14.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.4471, allocations: 37.7 kB / 0.5179 GB, free: 14.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.4473, allocations: 371 kB / 0.5182 GB, free: 14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.4475, allocations: 161.6 kB / 0.5184 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.4476, allocations: 130.6 kB / 0.5185 GB, free: 13.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4478, allocations: 358.8 kB / 0.5188 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.4481, allocations: 149.9 kB / 0.519 GB, free: 13.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004676/0.4486, allocations: 393.5 kB / 0.5193 GB, free: 12.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/0.4493, allocations: 0.5747 MB / 0.5199 GB, free: 12.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4494, allocations: 4 kB / 0.5199 GB, free: 12.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009758/0.4503, allocations: 0.6088 MB / 0.5205 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.4504, allocations: 15.92 kB / 0.5205 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.4504, allocations: 11.94 kB / 0.5205 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.4504, allocations: 12 kB / 0.5205 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006909/0.4511, allocations: 200.1 kB / 0.5207 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/0.4512, allocations: 19.94 kB / 0.5208 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.4514, allocations: 20 kB / 0.5208 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/0.4515, allocations: 39.98 kB / 0.5208 GB, free: 11.1 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002726/0.4518, allocations: 197.6 kB / 0.521 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.214e-05/0.4519, allocations: 51.38 kB / 0.521 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009593/0.4528, allocations: 0.5051 MB / 0.5215 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4529, allocations: 8 kB / 0.5215 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4529, allocations: 0 / 0.5215 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.4529, allocations: 4 kB / 0.5216 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008208/0.4537, allocations: 0.6238 MB / 0.5222 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4537, allocations: 0 / 0.5222 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005507/0.4543, allocations: 147.9 kB / 0.5223 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.4543, allocations: 4 kB / 0.5223 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.4543, allocations: 19.92 kB / 0.5223 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4543, allocations: 4 kB / 0.5223 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4544, allocations: 4 kB / 0.5223 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009988/0.4554, allocations: 0.7186 MB / 0.523 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.4556, allocations: 160.5 kB / 0.5232 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.097e-05/0.4556, allocations: 15.94 kB / 0.5232 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.4558, allocations: 16 kB / 0.5232 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.811e-05/0.4559, allocations: 32.39 kB / 0.5232 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.456, allocations: 23.98 kB / 0.5233 GB, free: 8.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002829/0.4563, allocations: 275.1 kB / 0.5235 GB, free: 8.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4563, allocations: 4 kB / 0.5235 GB, free: 8.172 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001018/0.4573, allocations: 327.8 kB / 0.5238 GB, free: 7.852 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007578/0.4581, allocations: 434.6 kB / 0.5243 GB, free: 7.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006931/0.4588, allocations: 446.2 kB / 0.5247 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4588, allocations: 0 / 0.5247 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.4591, allocations: 207.1 kB / 0.5249 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006909/0.4598, allocations: 132.3 kB / 0.525 GB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.4617, allocations: 1.183 MB / 0.5262 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.4622, allocations: 0.89 MB / 0.527 GB, free: 4.512 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003608/0.4625, allocations: 116.6 kB / 0.5271 GB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.4627, allocations: 75.41 kB / 0.5272 GB, free: 4.324 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4627, allocations: 0 / 0.5272 GB, free: 4.324 MB / 398.1 MB Notification: Performance of Templates: time 0.01686/0.4796, allocations: 10.19 MB / 0.5372 GB, free: 10.18 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & ./Chemical_Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)