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.001765/0.001765, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.002008/0.002008, allocations: 191 kB / 17.29 MB, free: 5.516 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09579/0.09579, allocations: 15.31 MB / 306.5 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 59.84 kB / 371.7 MB, free: 50.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1032, allocations: 53.62 MB / 425.4 MB, free: 13.26 MB / 302.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.03372/0.1369, allocations: 24.39 MB / 449.7 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.1529, allocations: 11.61 MB / 461.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008905/0.1538, allocations: 11.94 kB / 461.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008315/0.1546, allocations: 262.1 kB / 461.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002799/0.1575, allocations: 0.9734 MB / 462.6 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003783/0.1613, allocations: 1.511 MB / 464.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.1627, allocations: 1.244 MB / 465.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007359/0.1634, allocations: 0.709 MB / 466.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005759/0.164, allocations: 0.6116 MB / 466.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007416/0.1648, allocations: 0.658 MB / 467.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1649, allocations: 108 kB / 467.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.1679, allocations: 1.287 MB / 468.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.1681, allocations: 263.2 kB / 469 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004753/0.1686, allocations: 0.5483 MB / 469.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003444/0.1721, allocations: 2.499 MB / 472 MB, free: 14.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1721, allocations: 0 / 472 MB, free: 14.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1721, allocations: 0 / 472 MB, free: 14.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.1721, allocations: 0 / 472 MB, free: 14.6 MB / 350.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.002338/0.1744, allocations: 1.493 MB / 473.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1745, allocations: 8.031 kB / 473.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008605/0.1754, allocations: 219.4 kB / 473.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008858/0.1763, allocations: 0.5754 MB / 474.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.1764, allocations: 96.27 kB / 474.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.1765, allocations: 92.3 kB / 474.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.1781, allocations: 1.049 MB / 475.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.1781, allocations: 0 / 475.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.49e-05/0.1782, allocations: 32 kB / 475.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.1782, allocations: 20 kB / 475.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.1801, allocations: 1.28 MB / 476.9 MB, free: 9.629 MB / 350.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.00485/0.1849, allocations: 3.469 MB / 480.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.1871, allocations: 1.511 MB / 481.9 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005812/0.1877, allocations: 435.7 kB / 482.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005358/0.193, allocations: 4.049 MB / 486.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.929e-05/0.1932, allocations: 39.12 kB / 486.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.114e-06/0.1932, allocations: 0 / 486.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.003141/0.1963, allocations: 1.661 MB / 488 MB, free: 13.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1964, allocations: 59.97 kB / 488.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005521/0.1969, allocations: 0.5145 MB / 488.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/0.197, allocations: 37.7 kB / 488.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.1973, allocations: 458.3 kB / 489.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.1974, allocations: 220.8 kB / 489.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/0.1976, allocations: 174.5 kB / 489.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.1978, allocations: 378.8 kB / 489.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.1982, allocations: 209.9 kB / 490.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000667/0.1989, allocations: 0.5295 MB / 490.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.2, allocations: 0.817 MB / 491.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.2, allocations: 4 kB / 491.4 MB, free: 9.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001418/0.2014, allocations: 0.8463 MB / 492.3 MB, free: 9.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.2014, allocations: 12.03 kB / 492.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/0.2015, allocations: 15.98 kB / 492.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.161e-05/0.2015, allocations: 23.88 kB / 492.3 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009025/0.2024, allocations: 263.6 kB / 492.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.38e-05/0.2024, allocations: 19.94 kB / 492.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004305/0.2029, allocations: 35.98 kB / 492.6 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.407e-05/0.203, allocations: 55.94 kB / 492.7 MB, free: 8.691 MB / 366.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.0003191/0.2033, allocations: 237.5 kB / 492.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.2034, allocations: 63.16 kB / 493 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.2048, allocations: 0.693 MB / 493.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.2048, allocations: 11.98 kB / 493.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2048, allocations: 0 / 493.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.2048, allocations: 0 / 493.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.2058, allocations: 0.7682 MB / 494.4 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.2059, allocations: 3.984 kB / 494.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007011/0.2066, allocations: 172 kB / 494.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.2066, allocations: 4 kB / 494.6 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.2066, allocations: 27.94 kB / 494.6 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.2066, allocations: 3.938 kB / 494.6 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2067, allocations: 7.984 kB / 494.7 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.2081, allocations: 0.9481 MB / 495.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/0.2085, allocations: 188.2 kB / 495.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.162e-05/0.2086, allocations: 15.94 kB / 495.8 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.2088, allocations: 15.98 kB / 495.8 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.2089, allocations: 52.44 kB / 495.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.149e-05/0.209, allocations: 28 kB / 495.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003626/0.2094, allocations: 342.8 kB / 496.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2094, allocations: 0 / 496.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001357/0.2108, allocations: 483.6 kB / 496.7 MB, free: 4.523 MB / 366.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.001223/0.212, allocations: 0.5883 MB / 497.3 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.2131, allocations: 0.6039 MB / 497.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.2132, allocations: 320 / 497.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.2136, allocations: 283 kB / 498.2 MB, free: 3.043 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009032/0.2145, allocations: 167.9 kB / 498.3 MB, free: 2.879 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.2177, allocations: 1.5 MB / 499.8 MB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007494/0.2184, allocations: 0.954 MB / 0.4891 GB, free: 368 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005783/0.219, allocations: 169.5 kB / 0.4892 GB, free: 196 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.2193, allocations: 103.4 kB / 0.4893 GB, free: 92 kB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2193, allocations: 0 / 0.4893 GB, free: 92 kB / 366.1 MB Notification: Performance of Templates: time 0.02331/0.2426, allocations: 13.97 MB / 0.503 GB, free: 2.188 MB / 382.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)