Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage") [: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/Complex 3.2.1+maint.om/package.mo): time 0.004475/0.004475, allocations: 177.9 kB / 7.452 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.516/1.516, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001679/0.001679, allocations: 123.8 kB / 217.7 MB, free: 8.18 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.522e-06/6.632e-06, allocations: 0 / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06953/0.06956, allocations: 38.77 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2139/0.2835, allocations: 65.66 MB / 366.2 MB, free: 2.824 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001591/0.2837, allocations: 64.91 kB / 366.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.003232/0.287, allocations: 1.127 MB / 367.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.287, allocations: 7.75 kB / 367.4 MB, free: 1.855 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0002638/0.2873, allocations: 362.7 kB / 367.7 MB, free: 1.461 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.2873, allocations: 15.97 kB / 367.7 MB, free: 1.445 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.206e-05/0.2874, allocations: 11.81 kB / 367.7 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.634e-05/0.2874, allocations: 175.5 kB / 367.9 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.2875, allocations: 3.906 kB / 367.9 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.2875, allocations: 4 kB / 367.9 MB, free: 1.215 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.596e-05/0.2876, allocations: 27.44 kB / 367.9 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.952e-05/0.2877, allocations: 95.72 kB / 368 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.2877, allocations: 0 / 368 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2877, allocations: 0 / 368 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2877, allocations: 4 kB / 368 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003755/0.2881, allocations: 0.6027 MB / 368.6 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.776e-05/0.2882, allocations: 99.7 kB / 368.7 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.338e-05/0.2882, allocations: 49.25 kB / 368.8 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.2882, allocations: 4 kB / 368.8 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.234e-05/0.2883, allocations: 40.12 kB / 368.8 MB, free: 224 kB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2883, allocations: 0.6562 kB / 368.8 MB, free: 224 kB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002313/0.2885, allocations: 69.16 kB / 368.9 MB, free: 152 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.2886, allocations: 157.1 kB / 369.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.55e-05/0.2886, allocations: 112.2 kB / 369.2 MB, free: 15.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.2887, allocations: 25.7 kB / 369.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.612e-05/0.2887, allocations: 91.67 kB / 369.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.2887, allocations: 19.73 kB / 369.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-06/0.2887, allocations: 3.938 kB / 369.3 MB, free: 15.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.616e-05/0.2888, allocations: 318.4 kB / 369.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.382e-05/0.2889, allocations: 11.31 kB / 369.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.796e-05/0.2889, allocations: 40.03 kB / 369.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.939e-05/0.2889, allocations: 15.12 kB / 369.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.289, allocations: 0 / 369.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001093/0.2891, allocations: 67.75 kB / 369.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.2891, allocations: 12.09 kB / 369.8 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.2891, allocations: 7.906 kB / 369.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.2891, allocations: 0 / 369.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.2892, allocations: 15.98 kB / 369.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.2892, allocations: 3.938 kB / 369.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.736e-05/0.2893, allocations: 11.98 kB / 369.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.2893, allocations: 11.98 kB / 369.8 MB, free: 15.19 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.854e-05/0.2894, allocations: 105 kB / 369.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.2895, allocations: 7.906 kB / 369.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.186e-05/0.2896, allocations: 10.89 kB / 369.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2896, allocations: 7.984 kB / 369.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.2896, allocations: 0 / 369.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2896, allocations: 7.891 kB / 369.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003029/0.2899, allocations: 158 kB / 370.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2899, allocations: 0.875 kB / 370.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.503e-05/0.29, allocations: 22.36 kB / 370.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.29, allocations: 0 / 370.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.29, allocations: 4 kB / 370.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.29, allocations: 3.938 kB / 370.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.29, allocations: 0 / 370.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002331/0.2903, allocations: 0.506 MB / 370.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.2903, allocations: 88.2 kB / 370.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.2903, allocations: 0 / 370.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.2906, allocations: 15.98 kB / 370.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.2906, allocations: 11.92 kB / 370.7 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.2907, allocations: 7.906 kB / 370.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.41e-05/0.2907, allocations: 86.53 kB / 370.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003604/0.2911, allocations: 11.94 kB / 370.9 MB, free: 14.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * 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 9.516e-05/0.2912, allocations: 99.19 kB / 370.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.2913, allocations: 41.48 kB / 371 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2913, allocations: 0 / 371 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.32e-05/0.2913, allocations: 23.5 kB / 371 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.2916, allocations: 5.203 kB / 371 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003315/0.292, allocations: 128 kB / 371.1 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000342/0.2923, allocations: 0.7075 MB / 371.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2923, allocations: 0 / 371.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of Templates: time 0.002274/0.2946, allocations: 0.563 MB / 372.4 MB, free: 12.47 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.BusUsage.pipe 2>&1)