Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.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.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009097/0.0009096, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.007911/0.007912, allocations: 171 kB / 16.26 MB, free: 6.613 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.376/1.376, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1929/0.1929, allocations: 15.27 MB / 306.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003134, allocations: 8 kB / 372.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2955, allocations: 54.62 MB / 426.7 MB, free: 40.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003766/0.2993, allocations: 3.086 MB / 429.8 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005711/0.305, allocations: 6.209 MB / 436 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000364/0.3054, allocations: 14.38 kB / 436 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00047/0.3059, allocations: 136.8 kB / 436.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005767/0.3065, allocations: 227.7 kB / 436.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.3087, allocations: 0.8418 MB / 437.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005782/0.3093, allocations: 495.3 kB / 437.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.3095, allocations: 140 kB / 437.8 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.3097, allocations: 216.6 kB / 438.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.31, allocations: 239.2 kB / 438.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/0.3101, allocations: 16.28 kB / 438.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.3113, allocations: 0.533 MB / 438.8 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.836e-05/0.3114, allocations: 78.8 kB / 438.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.3115, allocations: 198.4 kB / 439.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.3127, allocations: 0.9333 MB / 440 MB, free: 34.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3127, allocations: 3.938 kB / 440 MB, free: 34.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3127, allocations: 0 / 440 MB, free: 34.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.3127, allocations: 3.094 kB / 440 MB, free: 34.48 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008761/0.3136, allocations: 0.6578 MB / 440.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3136, allocations: 13.47 kB / 440.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/0.3141, allocations: 110.1 kB / 440.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.3145, allocations: 357.6 kB / 441.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.3146, allocations: 17.28 kB / 441.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.764e-05/0.3146, allocations: 28.16 kB / 441.2 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.3152, allocations: 381.8 kB / 441.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3152, allocations: 3.125 kB / 441.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.717e-05/0.3152, allocations: 11.33 kB / 441.6 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.3152, allocations: 6.125 kB / 441.6 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006708/0.3159, allocations: 0.5456 MB / 442.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3173, allocations: 1.385 MB / 443.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.3176, allocations: 165.1 kB / 443.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.3178, allocations: 96.62 kB / 443.8 MB, free: 32.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001616/0.3194, allocations: 1.859 MB / 445.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3195, allocations: 30.56 kB / 445.7 MB, free: 30.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.3195, allocations: 4 kB / 445.7 MB, free: 30.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004175/0.3199, allocations: 226.7 kB / 445.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.3199, allocations: 54.72 kB / 446 MB, free: 30.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.3203, allocations: 375.1 kB / 446.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.3203, allocations: 33.03 kB / 446.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3204, allocations: 219.8 kB / 446.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.3205, allocations: 52.06 kB / 446.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.3205, allocations: 30.56 kB / 446.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.703e-05/0.3206, allocations: 345.9 kB / 447 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.693e-05/0.3207, allocations: 65.14 kB / 447.1 MB, free: 29.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.3209, allocations: 237.8 kB / 447.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.3212, allocations: 346.6 kB / 447.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3212, allocations: 0 / 447.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004385/0.3217, allocations: 351.1 kB / 448 MB, free: 28.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3217, allocations: 8.031 kB / 448 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3217, allocations: 6.281 kB / 448 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.3217, allocations: 10.03 kB / 448 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.3219, allocations: 72.56 kB / 448.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.322, allocations: 21 kB / 448.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.3221, allocations: 40.62 kB / 448.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.3222, allocations: 26.12 kB / 448.2 MB, free: 28.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (35): * Single equations (assignments): 35 * 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.0001353/0.3223, allocations: 161.5 kB / 448.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.3224, allocations: 35.94 kB / 448.3 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004872/0.3229, allocations: 278.4 kB / 448.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3229, allocations: 3.281 kB / 448.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3229, allocations: 3.938 kB / 448.6 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3229, allocations: 3.938 kB / 448.6 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005066/0.3234, allocations: 0.6353 MB / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3234, allocations: 7.188 kB / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.223e-05/0.3235, allocations: 13.05 kB / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3235, allocations: 0 / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3235, allocations: 2.969 kB / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3235, allocations: 3.125 kB / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3235, allocations: 0 / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001524/0.3237, allocations: 183.3 kB / 449.5 MB, free: 27.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.075e-05/0.3238, allocations: 135 kB / 449.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.567e-05/0.3238, allocations: 3.156 kB / 449.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.3239, allocations: 3.219 kB / 449.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.201e-05/0.324, allocations: 11.41 kB / 449.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.324, allocations: 3.094 kB / 449.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002634/0.3242, allocations: 313.2 kB / 449.9 MB, free: 27.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3243, allocations: 0 / 449.9 MB, free: 27.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005881/0.3248, allocations: 171.4 kB / 450.1 MB, free: 27.49 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.0005006/0.3254, allocations: 295.5 kB / 450.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002837/0.3256, allocations: 168.2 kB / 450.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3257, allocations: 3.938 kB / 450.6 MB, free: 27.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.951e-05/0.3257, allocations: 26.05 kB / 450.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.3263, allocations: 92.55 kB / 450.7 MB, free: 27.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007943/0.3272, allocations: 0.6579 MB / 451.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.3274, allocations: 0.776 MB / 452.1 MB, free: 26.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000295/0.3277, allocations: 98.91 kB / 452.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.351e-05/0.3278, allocations: 45.52 kB / 452.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3278, allocations: 4 kB / 452.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of Templates: time 0.01004/0.3378, allocations: 5.986 MB / 458.2 MB, free: 25.52 MB / 350.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)