Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [: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.001996/0.001996, allocations: 189.5 kB / 8.135 MB, free: 2.215 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.179/1.179, allocations: 194.2 MB / 202.8 MB, free: 8.719 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.001756/0.001756, allocations: 116.6 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.665e-06/7.695e-06, allocations: 4 kB / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.07915, allocations: 44.47 MB / 342 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2098/0.289, allocations: 73.26 MB / 415.3 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001721/0.2892, allocations: 67.2 kB / 415.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0113/0.3005, allocations: 4.626 MB / 420 MB, free: 18.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.3005, allocations: 4 kB / 420 MB, free: 18.07 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0006952/0.3012, allocations: 0.5519 MB / 420.6 MB, free: 17.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3013, allocations: 8.031 kB / 420.6 MB, free: 17.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.3014, allocations: 35.53 kB / 420.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.3017, allocations: 274.6 kB / 420.9 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.3017, allocations: 13.75 kB / 420.9 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.3018, allocations: 12 kB / 420.9 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003089/0.3021, allocations: 168.2 kB / 421.1 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.3024, allocations: 241 kB / 421.3 MB, free: 16.87 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3024, allocations: 0 / 421.3 MB, free: 16.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.3025, allocations: 3.984 kB / 421.3 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.3025, allocations: 7.938 kB / 421.3 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3039, allocations: 1.093 MB / 422.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.3042, allocations: 177.2 kB / 422.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.3045, allocations: 129.8 kB / 422.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.3045, allocations: 4.188 kB / 422.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.3047, allocations: 155.5 kB / 422.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.913e-06/0.3047, allocations: 0 / 422.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004882/0.3052, allocations: 240.7 kB / 423.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.3052, allocations: 136.5 kB / 423.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.3054, allocations: 198.7 kB / 423.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.3054, allocations: 29.69 kB / 423.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.3055, allocations: 148.5 kB / 423.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.3055, allocations: 68.5 kB / 423.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.3056, allocations: 0 / 423.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.92e-05/0.3056, allocations: 336.9 kB / 424 MB, free: 14.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.3057, allocations: 59.5 kB / 424 MB, free: 14.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.3058, allocations: 115.4 kB / 424.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.306, allocations: 61.48 kB / 424.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.306, allocations: 0 / 424.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00035/0.3063, allocations: 258.2 kB / 424.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.3063, allocations: 4 kB / 424.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3064, allocations: 4.125 kB / 424.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003124/0.3067, allocations: 89.62 kB / 424.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3068, allocations: 27.92 kB / 424.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.3085, allocations: 1.854 MB / 426.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.3087, allocations: 31.89 kB / 426.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.3087, allocations: 12.88 kB / 426.5 MB, free: 12.26 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: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 7.801e-05/0.3088, allocations: 112.8 kB / 426.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.3089, allocations: 27.66 kB / 426.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.779e-05/0.3089, allocations: 35.84 kB / 426.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3089, allocations: 4 kB / 426.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.3089, allocations: 0 / 426.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.309, allocations: 4 kB / 426.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007711/0.3097, allocations: 0.7249 MB / 427.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3097, allocations: 0 / 427.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.3099, allocations: 27.83 kB / 427.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002354/0.3101, allocations: 87.98 kB / 427.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.3101, allocations: 2.75 kB / 427.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.3116, allocations: 1.801 MB / 429.3 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3116, allocations: 0 / 429.3 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004259/0.3121, allocations: 424.5 kB / 429.7 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.3122, allocations: 118.5 kB / 429.8 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.3122, allocations: 6.812 kB / 429.8 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.3124, allocations: 20.09 kB / 429.9 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.03e-05/0.3125, allocations: 32.34 kB / 429.9 MB, free: 9.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.3125, allocations: 5.375 kB / 429.9 MB, free: 9.172 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001017/0.3126, allocations: 160 kB / 430.1 MB, free: 9.043 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004209/0.3131, allocations: 79.84 kB / 430.1 MB, free: 8.965 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001283/0.3132, allocations: 111.2 kB / 430.2 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005033/0.3137, allocations: 289.2 kB / 430.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3137, allocations: 0 / 430.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.314, allocations: 222.4 kB / 430.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3143, allocations: 36.23 kB / 430.8 MB, free: 8.402 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008847/0.3152, allocations: 418.1 kB / 431.2 MB, free: 8.023 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.3154, allocations: 0.7787 MB / 432 MB, free: 7.219 MB / 314.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3155, allocations: 0 / 432 MB, free: 7.219 MB / 314.7 MB Notification: Performance of Templates: time 0.006723/0.3222, allocations: 3.968 MB / 435.9 MB, free: 3.324 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)