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.001064/0.001064, allocations: 91.92 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 179.7 kB / 16.92 MB, free: 6.656 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.342/1.342, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2014/0.2014, allocations: 15.29 MB / 307.4 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003348, allocations: 8 kB / 372.7 MB, free: 3.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2832, allocations: 54.62 MB / 427.4 MB, free: 40.29 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02439/0.3076, allocations: 23.52 MB / 450.9 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008038/0.3157, allocations: 7.876 MB / 458.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007712/0.3165, allocations: 15.66 kB / 458.8 MB, free: 28.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006048/0.3171, allocations: 174.2 kB / 459 MB, free: 28.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002085/0.3192, allocations: 0.588 MB / 459.5 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002777/0.322, allocations: 0.8985 MB / 460.4 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.3233, allocations: 0.9137 MB / 461.4 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005999/0.3239, allocations: 418.5 kB / 461.8 MB, free: 26.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006093/0.3245, allocations: 403.2 kB / 462.2 MB, free: 26.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007566/0.3253, allocations: 467 kB / 462.6 MB, free: 26.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.3255, allocations: 40.44 kB / 462.6 MB, free: 26.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002729/0.3282, allocations: 0.8312 MB / 463.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.3284, allocations: 150.9 kB / 463.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004419/0.3288, allocations: 400.3 kB / 464 MB, free: 25.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.3305, allocations: 1.285 MB / 465.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3305, allocations: 0.9688 kB / 465.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3305, allocations: 3 kB / 465.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3305, allocations: 0 / 465.3 MB, free: 25.4 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001637/0.3321, allocations: 1.001 MB / 466.3 MB, free: 24.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3322, allocations: 11.89 kB / 466.3 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006178/0.3328, allocations: 151.1 kB / 466.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000574/0.3334, allocations: 470.6 kB / 466.9 MB, free: 24.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.884e-05/0.3335, allocations: 77.02 kB / 467 MB, free: 24.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3336, allocations: 76.64 kB / 467.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.3348, allocations: 0.7715 MB / 467.8 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.3348, allocations: 1.375 kB / 467.8 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.801e-05/0.3349, allocations: 29.5 kB / 467.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.3349, allocations: 16.5 kB / 467.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.3363, allocations: 0.8808 MB / 468.8 MB, free: 23.61 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.00345/0.3397, allocations: 2.568 MB / 471.3 MB, free: 21.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.341, allocations: 1.016 MB / 472.4 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000375/0.3414, allocations: 313.6 kB / 472.7 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002833/0.3442, allocations: 2.781 MB / 475.4 MB, free: 17.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.3443, allocations: 38.56 kB / 475.5 MB, free: 17.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.024e-06/0.3443, allocations: 0 / 475.5 MB, free: 17.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002148/0.3464, allocations: 1.228 MB / 476.7 MB, free: 16.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.3465, allocations: 63.34 kB / 476.8 MB, free: 16.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003721/0.3469, allocations: 414 kB / 477.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3469, allocations: 37.7 kB / 477.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.3471, allocations: 371.7 kB / 477.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.981e-05/0.3472, allocations: 165.5 kB / 477.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.3472, allocations: 54.3 kB / 477.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.045e-05/0.3473, allocations: 357.2 kB / 478.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.3475, allocations: 149.3 kB / 478.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.3479, allocations: 396.7 kB / 478.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000593/0.3485, allocations: 0.5656 MB / 479.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3485, allocations: 4 kB / 479.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0008145/0.3493, allocations: 0.6151 MB / 479.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3493, allocations: 10.03 kB / 479.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3493, allocations: 11.94 kB / 479.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.3494, allocations: 15.42 kB / 479.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/0.35, allocations: 205.8 kB / 480.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.35, allocations: 19.31 kB / 480.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.3504, allocations: 31.33 kB / 480.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.3505, allocations: 39.28 kB / 480.2 MB, free: 12.92 MB / 350.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.0001975/0.3507, allocations: 209.5 kB / 480.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.3508, allocations: 51.34 kB / 480.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008379/0.3516, allocations: 0.4936 MB / 480.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3516, allocations: 8 kB / 480.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3516, allocations: 0 / 480.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.3517, allocations: 3.047 kB / 480.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006886/0.3523, allocations: 0.629 MB / 481.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3524, allocations: 0 / 481.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005336/0.3529, allocations: 145.1 kB / 481.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3529, allocations: 4 kB / 481.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.353, allocations: 23.17 kB / 481.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.353, allocations: 4.125 kB / 481.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.353, allocations: 4 kB / 481.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008227/0.3538, allocations: 0.7248 MB / 482.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.354, allocations: 156.2 kB / 482.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.354, allocations: 19.27 kB / 482.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.3543, allocations: 15.94 kB / 482.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.3543, allocations: 36.39 kB / 482.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.3544, allocations: 23.47 kB / 482.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.3546, allocations: 275.9 kB / 483 MB, free: 10.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.62e-07/0.3546, allocations: 0 / 483 MB, free: 10.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009763/0.3556, allocations: 336.4 kB / 483.3 MB, free: 9.969 MB / 350.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.0007045/0.3563, allocations: 432 kB / 483.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006445/0.357, allocations: 435.4 kB / 484.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.357, allocations: 3.938 kB / 484.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.3572, allocations: 205.6 kB / 484.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/0.358, allocations: 124.1 kB / 484.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.3598, allocations: 1.576 MB / 486.1 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.3601, allocations: 0.8867 MB / 487 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.3603, allocations: 90.59 kB / 487 MB, free: 6.516 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3603, allocations: 8 kB / 487 MB, free: 6.508 MB / 350.1 MB Notification: Performance of Templates: time 0.01276/0.3731, allocations: 8.992 MB / 496 MB, free: 288 kB / 350.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)