Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009486/0.0009486, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001051/0.001051, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2964/0.2964, allocations: 15.26 MB / 306.2 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004302, allocations: 8 kB / 371.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.322, allocations: 54.62 MB / 426 MB, free: 40.21 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.CheckSubstancesData.SimpleReaction2): time 0.003808/0.3259, allocations: 3.319 MB / 429.3 MB, free: 40 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007924/0.3338, allocations: 7.793 MB / 437.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004005/0.3343, allocations: 13.94 kB / 437.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005389/0.3348, allocations: 205.7 kB / 437.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009014/0.3357, allocations: 445.6 kB / 437.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003278/0.339, allocations: 1.278 MB / 439 MB, free: 34.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007708/0.3398, allocations: 491.7 kB / 439.5 MB, free: 34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002957/0.3401, allocations: 188.1 kB / 439.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.3404, allocations: 219.9 kB / 439.9 MB, free: 33.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003577/0.3407, allocations: 309.8 kB / 440.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.3408, allocations: 19.81 kB / 440.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002326/0.3431, allocations: 0.9568 MB / 441.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.3432, allocations: 101.7 kB / 441.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.474e-05/0.3433, allocations: 110.5 kB / 441.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.3446, allocations: 0.8636 MB / 442.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3446, allocations: 0 / 442.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3446, allocations: 3.25 kB / 442.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3446, allocations: 0 / 442.2 MB, free: 33.17 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001093/0.3457, allocations: 0.8256 MB / 443.1 MB, free: 32.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3457, allocations: 9.594 kB / 443.1 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006881/0.3464, allocations: 161.5 kB / 443.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.3469, allocations: 391.4 kB / 443.6 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.3469, allocations: 22.12 kB / 443.6 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.347, allocations: 34.28 kB / 443.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000636/0.3476, allocations: 0.5213 MB / 444.2 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3477, allocations: 3.219 kB / 444.2 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.695e-05/0.3477, allocations: 15.09 kB / 444.2 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.3477, allocations: 7.406 kB / 444.2 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009437/0.3487, allocations: 0.8043 MB / 445 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.3505, allocations: 1.828 MB / 446.8 MB, free: 30.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.3508, allocations: 207.9 kB / 447.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0023/0.3531, allocations: 2.621 MB / 449.7 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.452e-05/0.3532, allocations: 30.56 kB / 449.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.3532, allocations: 0 / 449.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004969/0.3537, allocations: 291.9 kB / 450 MB, free: 27.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.3537, allocations: 53.66 kB / 450 MB, free: 27.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.3541, allocations: 479.3 kB / 450.5 MB, free: 27.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.3542, allocations: 32.98 kB / 450.5 MB, free: 27.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.3543, allocations: 284.6 kB / 450.8 MB, free: 27.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.3543, allocations: 67.09 kB / 450.9 MB, free: 27.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.861e-05/0.3544, allocations: 11.44 kB / 450.9 MB, free: 27.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.268e-05/0.3545, allocations: 361.2 kB / 451.2 MB, free: 26.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.3546, allocations: 93.55 kB / 451.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.3548, allocations: 357.3 kB / 451.7 MB, free: 26.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/0.355, allocations: 146.8 kB / 451.8 MB, free: 26.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.355, allocations: 3.062 kB / 451.8 MB, free: 26.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005783/0.3556, allocations: 480.8 kB / 452.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3556, allocations: 9.25 kB / 452.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.3557, allocations: 13.36 kB / 452.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.3557, allocations: 15.38 kB / 452.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003007/0.356, allocations: 115.9 kB / 452.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.894e-05/0.356, allocations: 23.88 kB / 452.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.3563, allocations: 54.28 kB / 452.5 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/0.3563, allocations: 38.31 kB / 452.6 MB, free: 26.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001429/0.3565, allocations: 177.4 kB / 452.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.422e-05/0.3565, allocations: 44.84 kB / 452.8 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006437/0.3572, allocations: 403 kB / 453.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3572, allocations: 3.156 kB / 453.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3572, allocations: 0 / 453.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3572, allocations: 0 / 453.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/0.3578, allocations: 0.7106 MB / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3578, allocations: 2.938 kB / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.225e-05/0.3579, allocations: 9.188 kB / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3579, allocations: 2.938 kB / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.3579, allocations: 10.47 kB / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3579, allocations: 0 / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3579, allocations: 2.906 kB / 453.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000197/0.3581, allocations: 263.3 kB / 454.2 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.3582, allocations: 143.8 kB / 454.3 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.072e-05/0.3583, allocations: 3 kB / 454.3 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.3584, allocations: 3.031 kB / 454.3 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.3584, allocations: 14.09 kB / 454.3 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-06/0.3585, allocations: 2.875 kB / 454.3 MB, free: 24.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003363/0.3588, allocations: 386.8 kB / 454.7 MB, free: 24.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3588, allocations: 0 / 454.7 MB, free: 24.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006901/0.3595, allocations: 254.3 kB / 455 MB, free: 24.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000568/0.3601, allocations: 391.2 kB / 455.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003256/0.3604, allocations: 224.1 kB / 455.6 MB, free: 24.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3604, allocations: 2.938 kB / 455.6 MB, free: 24.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.6e-05/0.3605, allocations: 34.89 kB / 455.6 MB, free: 24.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.361, allocations: 110.4 kB / 455.7 MB, free: 24.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008776/0.3619, allocations: 0.795 MB / 456.5 MB, free: 23.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.3621, allocations: 0.8264 MB / 457.3 MB, free: 23.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004039/0.3625, allocations: 134.2 kB / 457.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.353e-05/0.3626, allocations: 58.98 kB / 457.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3626, allocations: 3.938 kB / 457.5 MB, free: 22.95 MB / 350.1 MB Notification: Performance of Templates: time 0.01539/0.378, allocations: 7.922 MB / 465.4 MB, free: 22.25 MB / 350.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile Environment - environmentSimulation: (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1) Environment - environmentSimulation: