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.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.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.001221/0.001221, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.006249/0.006249, allocations: 170.5 kB / 16.27 MB, free: 6.648 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2397/0.2397, allocations: 15.27 MB / 306.7 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003133, allocations: 8 kB / 372.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2829, allocations: 54.62 MB / 426.7 MB, free: 40.55 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.CheckSubstancesData.SimpleReaction2): time 0.02246/0.3054, allocations: 22.27 MB / 449 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008362/0.3138, allocations: 9.057 MB / 458 MB, free: 28.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006249/0.3145, allocations: 18.91 kB / 458.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005881/0.3151, allocations: 208.1 kB / 458.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008835/0.316, allocations: 304 kB / 458.6 MB, free: 28.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003695/0.3197, allocations: 1.243 MB / 459.8 MB, free: 27.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.3207, allocations: 0.6625 MB / 460.5 MB, free: 27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.3211, allocations: 201.9 kB / 460.7 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003669/0.3214, allocations: 305.6 kB / 461 MB, free: 26.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/0.3219, allocations: 333.2 kB / 461.3 MB, free: 26.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.186e-05/0.322, allocations: 19.09 kB / 461.3 MB, free: 26.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002546/0.3245, allocations: 0.806 MB / 462.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.3247, allocations: 108.3 kB / 462.2 MB, free: 26.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002717/0.325, allocations: 273.5 kB / 462.5 MB, free: 26.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002968/0.328, allocations: 1.379 MB / 463.9 MB, free: 25.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.328, allocations: 0 / 463.9 MB, free: 25.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.328, allocations: 0 / 463.9 MB, free: 25.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.328, allocations: 1.406 kB / 463.9 MB, free: 25.79 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.001047/0.329, allocations: 0.8172 MB / 464.7 MB, free: 25.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3291, allocations: 8.906 kB / 464.7 MB, free: 25.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007387/0.3298, allocations: 161.1 kB / 464.8 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004823/0.3303, allocations: 422.5 kB / 465.3 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.3304, allocations: 25.62 kB / 465.3 MB, free: 24.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.356e-05/0.3305, allocations: 35.62 kB / 465.3 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007734/0.3312, allocations: 0.5312 MB / 465.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3313, allocations: 0 / 465.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/0.3313, allocations: 16.12 kB / 465.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3313, allocations: 15.7 kB / 465.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.3323, allocations: 0.8046 MB / 466.7 MB, free: 24.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.3344, allocations: 1.849 MB / 468.5 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.3348, allocations: 216.5 kB / 468.7 MB, free: 22.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.335, allocations: 134.5 kB / 468.9 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002494/0.3375, allocations: 2.647 MB / 471.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.3375, allocations: 40.88 kB / 471.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.3375, allocations: 0 / 471.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.000507/0.3381, allocations: 291.5 kB / 471.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.3381, allocations: 55.41 kB / 471.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.3385, allocations: 472.9 kB / 472.4 MB, free: 19.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3385, allocations: 33.7 kB / 472.4 MB, free: 19.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.3386, allocations: 289.5 kB / 472.7 MB, free: 19.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.3387, allocations: 64.5 kB / 472.7 MB, free: 19.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.3387, allocations: 39.81 kB / 472.8 MB, free: 19.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.566e-05/0.3388, allocations: 359.6 kB / 473.1 MB, free: 19.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.3389, allocations: 93.91 kB / 473.2 MB, free: 19.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.3392, allocations: 357.9 kB / 473.6 MB, free: 18.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003844/0.3396, allocations: 0.4919 MB / 474.1 MB, free: 17.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3396, allocations: 4 kB / 474.1 MB, free: 17.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005838/0.3402, allocations: 487.8 kB / 474.5 MB, free: 17.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3402, allocations: 11.28 kB / 474.6 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3402, allocations: 8 kB / 474.6 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.3402, allocations: 12.72 kB / 474.6 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.3405, allocations: 109.6 kB / 474.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.3405, allocations: 22.84 kB / 474.7 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.3408, allocations: 51.44 kB / 474.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.3408, allocations: 38.94 kB / 474.8 MB, free: 17.27 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.341, allocations: 184.2 kB / 475 MB, free: 17.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.69e-05/0.341, allocations: 43.44 kB / 475 MB, free: 17.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006603/0.3417, allocations: 403.6 kB / 475.4 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3417, allocations: 0 / 475.4 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3417, allocations: 4 kB / 475.4 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3417, allocations: 0 / 475.4 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005973/0.3423, allocations: 0.7221 MB / 476.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3424, allocations: 0 / 476.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.248e-05/0.3424, allocations: 16.12 kB / 476.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3424, allocations: 10.75 kB / 476.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3425, allocations: 4 kB / 476.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3425, allocations: 4 kB / 476.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3425, allocations: 0 / 476.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001738/0.3426, allocations: 200 kB / 476.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.3428, allocations: 157.3 kB / 476.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.911e-05/0.3428, allocations: 4 kB / 476.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.343, allocations: 0 / 476.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.343, allocations: 11.42 kB / 476.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.343, allocations: 4 kB / 476.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003429/0.3434, allocations: 418.2 kB / 476.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3434, allocations: 3.938 kB / 477 MB, free: 15.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007609/0.3441, allocations: 242.2 kB / 477.2 MB, free: 14.94 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 (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.0005674/0.3447, allocations: 393.8 kB / 477.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003326/0.345, allocations: 227.4 kB / 477.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3451, allocations: 0 / 477.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.278e-05/0.3451, allocations: 35.98 kB / 477.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.3458, allocations: 112.6 kB / 477.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008564/0.3467, allocations: 0.8286 MB / 478.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.3469, allocations: 0.8095 MB / 479.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003997/0.3473, allocations: 142.9 kB / 479.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.332e-05/0.3474, allocations: 61.02 kB / 479.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3474, allocations: 0 / 479.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Templates: time 0.0139/0.3613, allocations: 8.296 MB / 488.1 MB, free: 7.602 MB / 350.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (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)