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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.06355/0.06355, allocations: 15.27 MB / 22.54 MB, free: 1.109 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008798/0.0008799, allocations: 187.5 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.096/1.096, allocations: 221.4 MB / 253.3 MB, free: 10.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008429/0.0008429, allocations: 96.47 kB / 308.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.099e-06/5.109e-06, allocations: 1.5 kB / 369 MB, free: 53.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0682/0.06822, allocations: 54.63 MB / 423.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2184/0.2867, allocations: 94.21 MB / 0.5057 GB, free: 8.336 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001529/0.2869, allocations: 63.61 kB / 0.5058 GB, free: 8.336 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.03201/0.3189, allocations: 15.21 MB / 0.5206 GB, free: 7.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.3189, allocations: 15.53 kB / 0.5207 GB, free: 7.324 MB / 362.7 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.0006844/0.3196, allocations: 0.6413 MB / 0.5213 GB, free: 6.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.3197, allocations: 7.844 kB / 0.5213 GB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004952/0.3202, allocations: 143.7 kB / 0.5214 GB, free: 6.793 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.3205, allocations: 323.4 kB / 0.5217 GB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.3206, allocations: 11.88 kB / 0.5217 GB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.458e-05/0.3206, allocations: 11.62 kB / 0.5218 GB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001128/0.3217, allocations: 1.163 MB / 0.5229 GB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.3223, allocations: 0.629 MB / 0.5235 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3224, allocations: 0 / 0.5235 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.3224, allocations: 0 / 0.5235 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.3224, allocations: 3.875 kB / 0.5235 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.3248, allocations: 2.424 MB / 0.5259 GB, free: 21.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.726e-05/0.3248, allocations: 53.31 kB / 0.5259 GB, free: 21.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.3249, allocations: 31.91 kB / 0.526 GB, free: 21.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.3249, allocations: 0 / 0.526 GB, free: 21.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.382e-05/0.3249, allocations: 30.56 kB / 0.526 GB, free: 21.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 8.62e-07/0.3249, allocations: 7.938 kB / 0.526 GB, free: 21.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001849/0.3251, allocations: 99.08 kB / 0.5261 GB, free: 21.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.939e-05/0.3251, allocations: 55.28 kB / 0.5261 GB, free: 21.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000957/0.3261, allocations: 1.298 MB / 0.5274 GB, free: 20.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.3261, allocations: 25.7 kB / 0.5274 GB, free: 20.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.208e-05/0.3262, allocations: 225.2 kB / 0.5277 GB, free: 20.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.103e-05/0.3262, allocations: 14.75 kB / 0.5277 GB, free: 20.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-05/0.3263, allocations: 3.938 kB / 0.5277 GB, free: 20.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.406e-05/0.3264, allocations: 350.1 kB / 0.528 GB, free: 20.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.3267, allocations: 412.7 kB / 0.5284 GB, free: 20.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.327, allocations: 0.5445 MB / 0.5289 GB, free: 20.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.3282, allocations: 0.5585 MB / 0.5295 GB, free: 19.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3282, allocations: 4 kB / 0.5295 GB, free: 19.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001612/0.3298, allocations: 1.089 MB / 0.5305 GB, free: 19.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.939e-06/0.3298, allocations: 4.531 kB / 0.5305 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3298, allocations: 11.66 kB / 0.5306 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.3298, allocations: 7.875 kB / 0.5306 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.3301, allocations: 88.53 kB / 0.5307 GB, free: 19.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3302, allocations: 3.969 kB / 0.5307 GB, free: 19.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.3305, allocations: 39.03 kB / 0.5307 GB, free: 19.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.3305, allocations: 26.92 kB / 0.5307 GB, free: 19.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 7.755e-05/0.3306, allocations: 112.4 kB / 0.5308 GB, free: 19.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.3307, allocations: 35.16 kB / 0.5309 GB, free: 19.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.3308, allocations: 114.1 kB / 0.531 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3308, allocations: 0 / 0.531 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.3309, allocations: 7.891 kB / 0.531 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3309, allocations: 3.984 kB / 0.531 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000581/0.3314, allocations: 0.7854 MB / 0.5317 GB, free: 18.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3315, allocations: 3.938 kB / 0.5317 GB, free: 18.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.06e-05/0.3315, allocations: 15.72 kB / 0.5318 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3315, allocations: 3.875 kB / 0.5318 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.3316, allocations: 0 / 0.5318 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.3316, allocations: 3.75 kB / 0.5318 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3316, allocations: 3.984 kB / 0.5318 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001498/0.3317, allocations: 236.3 kB / 0.532 GB, free: 18.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.3319, allocations: 145.8 kB / 0.5321 GB, free: 18.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.972e-05/0.3319, allocations: 3.938 kB / 0.5321 GB, free: 18.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.3321, allocations: 3.875 kB / 0.5321 GB, free: 18.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.521e-05/0.3321, allocations: 7.75 kB / 0.5322 GB, free: 18.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.3321, allocations: 0 / 0.5322 GB, free: 18.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006493/0.3328, allocations: 1.035 MB / 0.5332 GB, free: 18.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004991/0.3333, allocations: 240.9 kB / 0.5334 GB, free: 18.07 MB / 378.7 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 () * 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.0004638/0.3338, allocations: 381.8 kB / 0.5338 GB, free: 17.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004157/0.3342, allocations: 0.4889 MB / 0.5342 GB, free: 17.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3342, allocations: 0.5 kB / 0.5342 GB, free: 17.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.17e-05/0.3342, allocations: 30.98 kB / 0.5343 GB, free: 17.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.3346, allocations: 74.39 kB / 0.5343 GB, free: 17.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005429/0.3351, allocations: 335 kB / 0.5347 GB, free: 17.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003353/0.3355, allocations: 0.832 MB / 0.5355 GB, free: 16.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3355, allocations: 0 / 0.5355 GB, free: 16.81 MB / 378.7 MB Notification: Performance of Templates: time 0.01022/0.3457, allocations: 8.278 MB / 0.5436 GB, free: 12.74 MB / 378.7 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)