Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007871/0.007871, allocations: 96.53 kB / 15.73 MB, free: 6.039 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.001339/0.001339, allocations: 196.4 kB / 16.67 MB, free: 5.969 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3032/0.3032, allocations: 15.31 MB / 305.8 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 59.91 kB / 425.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3711, allocations: 53.61 MB / 478.8 MB, free: 26.24 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.SimpleReaction2): time 0.03726/0.4084, allocations: 24.72 MB / 0.4917 GB, free: 10.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01242/0.4208, allocations: 11.61 MB / 0.503 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.4223, allocations: 11.94 kB / 0.5031 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.4234, allocations: 274 kB / 0.5033 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003596/0.427, allocations: 0.9773 MB / 0.5043 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004439/0.4315, allocations: 1.503 MB / 0.5057 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.4336, allocations: 1.244 MB / 0.507 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008889/0.4345, allocations: 0.6973 MB / 0.5076 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006553/0.4352, allocations: 0.6117 MB / 0.5082 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008463/0.436, allocations: 0.6657 MB / 0.5089 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001595/0.4362, allocations: 108 kB / 0.509 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004211/0.4404, allocations: 1.287 MB / 0.5102 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002813/0.4407, allocations: 259.2 kB / 0.5105 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005629/0.4413, allocations: 0.5406 MB / 0.511 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005372/0.4467, allocations: 2.521 MB / 0.5135 GB, free: 3.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.4467, allocations: 0 / 0.5135 GB, free: 3.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4467, allocations: 3.938 kB / 0.5135 GB, free: 3.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.4467, allocations: 0 / 0.5135 GB, free: 3.719 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002634/0.4494, allocations: 1.525 MB / 0.515 GB, free: 2.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.4494, allocations: 12.03 kB / 0.515 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008629/0.4503, allocations: 215.9 kB / 0.5152 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008561/0.4512, allocations: 0.5758 MB / 0.5158 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.4513, allocations: 96.27 kB / 0.5158 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.4515, allocations: 88.33 kB / 0.5159 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.4531, allocations: 1.057 MB / 0.517 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.4531, allocations: 0 / 0.517 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.001e-05/0.4532, allocations: 40 kB / 0.517 GB, free: 0 / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.4532, allocations: 20.05 kB / 0.517 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.4551, allocations: 1.28 MB / 0.5183 GB, free: 14.7 MB / 398.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.00478/0.4599, allocations: 3.475 MB / 0.5217 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.4621, allocations: 1.531 MB / 0.5232 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.4627, allocations: 439.5 kB / 0.5236 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005161/0.4679, allocations: 4.045 MB / 0.5275 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.4679, allocations: 39.12 kB / 0.5276 GB, free: 4.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.235e-06/0.468, allocations: 0 / 0.5276 GB, free: 4.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=63): time 0.003138/0.4711, allocations: 1.682 MB / 0.5292 GB, free: 2.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.4712, allocations: 55.97 kB / 0.5293 GB, free: 2.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005761/0.4717, allocations: 0.5185 MB / 0.5298 GB, free: 2.133 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.4718, allocations: 33.7 kB / 0.5298 GB, free: 2.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002791/0.4721, allocations: 475.8 kB / 0.5303 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.4722, allocations: 234 kB / 0.5305 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.4724, allocations: 174.6 kB / 0.5306 GB, free: 1.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4726, allocations: 370.8 kB / 0.531 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.473, allocations: 209.9 kB / 0.5312 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005935/0.4736, allocations: 0.5334 MB / 0.5317 GB, free: 15.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009853/0.4746, allocations: 0.817 MB / 0.5325 GB, free: 14.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4746, allocations: 4 kB / 0.5325 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001255/0.4758, allocations: 0.8503 MB / 0.5334 GB, free: 14.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.4759, allocations: 12 kB / 0.5334 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.4759, allocations: 15.94 kB / 0.5334 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.013e-05/0.4759, allocations: 19.94 kB / 0.5334 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008946/0.4768, allocations: 259.6 kB / 0.5336 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.4769, allocations: 28.14 kB / 0.5337 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.4772, allocations: 32 kB / 0.5337 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.795e-05/0.4773, allocations: 51.98 kB / 0.5338 GB, free: 13.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0002894/0.4776, allocations: 233.5 kB / 0.534 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.812e-05/0.4777, allocations: 71.56 kB / 0.534 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.4789, allocations: 0.6853 MB / 0.5347 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.479, allocations: 8 kB / 0.5347 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.479, allocations: 0 / 0.5347 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.479, allocations: 3.984 kB / 0.5347 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009541/0.4799, allocations: 0.7721 MB / 0.5355 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.48, allocations: 8.125 kB / 0.5355 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007007/0.4807, allocations: 167.8 kB / 0.5356 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.4807, allocations: 4 kB / 0.5356 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.4807, allocations: 31.92 kB / 0.5357 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.4807, allocations: 4 kB / 0.5357 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4808, allocations: 7.875 kB / 0.5357 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.482, allocations: 0.9485 MB / 0.5366 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.4823, allocations: 196.6 kB / 0.5368 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.047e-05/0.4824, allocations: 19.94 kB / 0.5368 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.4826, allocations: 12 kB / 0.5368 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.4827, allocations: 60.44 kB / 0.5369 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.064e-05/0.4828, allocations: 27.98 kB / 0.5369 GB, free: 10.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003326/0.4831, allocations: 338.9 kB / 0.5372 GB, free: 10 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4831, allocations: 0 / 0.5372 GB, free: 10 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00119/0.4843, allocations: 482.6 kB / 0.5377 GB, free: 9.531 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * 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.000977/0.4853, allocations: 0.5911 MB / 0.5383 GB, free: 8.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009226/0.4862, allocations: 0.6078 MB / 0.5389 GB, free: 8.316 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4863, allocations: 0 / 0.5389 GB, free: 8.316 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003876/0.4867, allocations: 287 kB / 0.5391 GB, free: 8.039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007635/0.4874, allocations: 152 kB / 0.5393 GB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.4897, allocations: 1.518 MB / 0.5408 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.4902, allocations: 0.9579 MB / 0.5417 GB, free: 5.348 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004709/0.4906, allocations: 169.5 kB / 0.5419 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.4909, allocations: 103.3 kB / 0.542 GB, free: 5.078 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4909, allocations: 0 / 0.542 GB, free: 5.078 MB / 414.1 MB Notification: Performance of Templates: time 0.02347/0.5143, allocations: 14.12 MB / 0.5558 GB, free: 7.016 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & ./Chemical_Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)