Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources") [: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.2+maint.om/package.mo): time 0.001523/0.001523, allocations: 190.3 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.229/1.229, allocations: 194.2 MB / 202.8 MB, free: 9.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001878/0.001878, allocations: 115 kB / 247.7 MB, free: 6.168 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.011e-06/6.031e-06, allocations: 0 / 297.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07891/0.07893, allocations: 44.48 MB / 342 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2101/0.2891, allocations: 71.09 MB / 413.1 MB, free: 24.13 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.2894, allocations: 62.97 kB / 413.2 MB, free: 24.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.004917/0.2943, allocations: 1.409 MB / 414.6 MB, free: 22.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.2943, allocations: 8 kB / 414.6 MB, free: 22.91 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003411/0.2947, allocations: 429.4 kB / 415 MB, free: 22.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2947, allocations: 8.031 kB / 415 MB, free: 22.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.714e-05/0.2948, allocations: 12.41 kB / 415 MB, free: 22.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.2949, allocations: 178.9 kB / 415.2 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.2949, allocations: 0 / 415.2 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.2949, allocations: 4 kB / 415.2 MB, free: 22.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000102/0.295, allocations: 33.98 kB / 415.3 MB, free: 22.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.2952, allocations: 88.73 kB / 415.3 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2952, allocations: 0 / 415.3 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.2952, allocations: 2.25 kB / 415.3 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2952, allocations: 3.906 kB / 415.3 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002924/0.2955, allocations: 354.3 kB / 415.7 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.149e-05/0.2956, allocations: 92.88 kB / 415.8 MB, free: 21.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.023e-05/0.2957, allocations: 40.77 kB / 415.8 MB, free: 21.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.2957, allocations: 4 kB / 415.8 MB, free: 21.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001114/0.2958, allocations: 136 kB / 416 MB, free: 21.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.2958, allocations: 4 kB / 416 MB, free: 21.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001956/0.296, allocations: 99.53 kB / 416.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.2961, allocations: 162.2 kB / 416.2 MB, free: 21.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.789e-05/0.2961, allocations: 121.4 kB / 416.3 MB, free: 21.03 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.2962, allocations: 29.7 kB / 416.4 MB, free: 21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.088e-05/0.2962, allocations: 88 kB / 416.5 MB, free: 20.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2962, allocations: 19.09 kB / 416.5 MB, free: 20.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-06/0.2962, allocations: 0 / 416.5 MB, free: 20.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.232e-05/0.2963, allocations: 326.4 kB / 416.8 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.954e-05/0.2963, allocations: 18.94 kB / 416.8 MB, free: 20.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.647e-05/0.2964, allocations: 51.98 kB / 416.9 MB, free: 20.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.041e-05/0.2965, allocations: 31.3 kB / 416.9 MB, free: 20.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2965, allocations: 0 / 416.9 MB, free: 20.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001555/0.2966, allocations: 105 kB / 417 MB, free: 20.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.298e-06/0.2967, allocations: 12.06 kB / 417 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2967, allocations: 3.906 kB / 417 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2967, allocations: 0 / 417 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.038e-05/0.2967, allocations: 4 kB / 417 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2967, allocations: 4 kB / 417 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.328e-05/0.2968, allocations: 15.92 kB / 417 MB, free: 20.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.2969, allocations: 7.125 kB / 417 MB, free: 20.35 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.557e-05/0.2969, allocations: 155.4 kB / 417.2 MB, free: 20.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.297, allocations: 11.81 kB / 417.2 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.446e-05/0.297, allocations: 11.75 kB / 417.2 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.297, allocations: 4 kB / 417.2 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.297, allocations: 0.8438 kB / 417.2 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.297, allocations: 0 / 417.2 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.2972, allocations: 170.2 kB / 417.4 MB, free: 19.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2972, allocations: 0 / 417.4 MB, free: 19.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-05/0.2972, allocations: 4 kB / 417.4 MB, free: 19.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2972, allocations: 4 kB / 417.4 MB, free: 19.97 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2972, allocations: 7.906 kB / 417.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2972, allocations: 5.156 kB / 417.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.2972, allocations: 0 / 417.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002269/0.2975, allocations: 171.3 kB / 417.6 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.34e-05/0.2975, allocations: 88.92 kB / 417.7 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.2975, allocations: 4 kB / 417.7 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.2976, allocations: 13.48 kB / 417.7 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.2977, allocations: 15.23 kB / 417.7 MB, free: 19.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.2977, allocations: 8 kB / 417.7 MB, free: 19.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.501e-05/0.2978, allocations: 99.36 kB / 417.8 MB, free: 19.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002304/0.298, allocations: 24 kB / 417.8 MB, free: 19.52 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0002194/0.2982, allocations: 133.3 kB / 418 MB, free: 19.39 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001633/0.2984, allocations: 124.6 kB / 418.1 MB, free: 19.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2984, allocations: 0 / 418.1 MB, free: 19.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.952e-05/0.2985, allocations: 79.27 kB / 418.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/0.2987, allocations: 19.92 kB / 418.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000291/0.299, allocations: 147.6 kB / 418.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.2991, allocations: 0.7044 MB / 419 MB, free: 18.31 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2992, allocations: 0 / 419 MB, free: 18.31 MB / 314.7 MB Notification: Performance of Templates: time 0.003102/0.3023, allocations: 1.263 MB / 420.3 MB, free: 17.11 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)