Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.00534/0.00534, allocations: 175.5 kB / 7.451 MB, free: 2.504 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.365/1.365, allocations: 170.6 MB / 178.4 MB, free: 15.43 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.001713/0.001713, allocations: 111.9 kB / 217.7 MB, free: 8.195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.416e-06/8.536e-06, allocations: 0 / 261.7 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.089, allocations: 38.76 MB / 300.5 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2837/0.3728, allocations: 67.99 MB / 368.5 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.3731, allocations: 76.52 kB / 368.6 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.01331/0.3864, allocations: 4.541 MB / 373.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.3865, allocations: 4 kB / 373.1 MB, free: 12.91 MB / 266.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.001156/0.3877, allocations: 0.5478 MB / 373.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.368e-05/0.3878, allocations: 8.031 kB / 373.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.3879, allocations: 35.62 kB / 373.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.3886, allocations: 272.8 kB / 374 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.3886, allocations: 8 kB / 374 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.019e-05/0.3887, allocations: 16 kB / 374 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000461/0.3891, allocations: 172 kB / 374.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004651/0.3896, allocations: 243.9 kB / 374.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3896, allocations: 0 / 374.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.3897, allocations: 0 / 374.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3897, allocations: 8 kB / 374.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.3917, allocations: 1.096 MB / 375.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.3922, allocations: 173.3 kB / 375.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002899/0.3925, allocations: 140.5 kB / 375.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.3925, allocations: 3.625 kB / 375.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002502/0.3928, allocations: 151.9 kB / 376 MB, free: 10.37 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.3928, allocations: 0 / 376 MB, free: 10.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006367/0.3934, allocations: 241.3 kB / 376.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.3935, allocations: 132.5 kB / 376.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/0.3938, allocations: 196.5 kB / 376.5 MB, free: 9.855 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.3939, allocations: 33.45 kB / 376.6 MB, free: 9.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.394, allocations: 154.9 kB / 376.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.606e-05/0.3941, allocations: 62.2 kB / 376.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.3941, allocations: 0 / 376.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3942, allocations: 336.7 kB / 377.1 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.3944, allocations: 62.56 kB / 377.2 MB, free: 9.258 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.3945, allocations: 105 kB / 377.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.3947, allocations: 71.33 kB / 377.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3947, allocations: 0 / 377.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004578/0.3951, allocations: 251.5 kB / 377.6 MB, free: 8.938 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3952, allocations: 4 kB / 377.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3952, allocations: 0 / 377.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000374/0.3955, allocations: 97.3 kB / 377.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.3957, allocations: 40.02 kB / 377.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.3979, allocations: 1.858 MB / 379.6 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.3981, allocations: 27.83 kB / 379.6 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.3982, allocations: 8 kB / 379.6 MB, free: 7.066 MB / 266.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: idealTriac.idealThyristor.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real idealTriac.idealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real 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 0.0001721/0.3984, allocations: 121.3 kB / 379.7 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.3984, allocations: 23.72 kB / 379.7 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.905e-05/0.3985, allocations: 27.41 kB / 379.8 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3985, allocations: 4 kB / 379.8 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.3985, allocations: 0 / 379.8 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3985, allocations: 3.984 kB / 379.8 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009901/0.3995, allocations: 0.7257 MB / 380.5 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3995, allocations: 4 kB / 380.5 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.3996, allocations: 19.98 kB / 380.5 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002659/0.3999, allocations: 83.36 kB / 380.6 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.4, allocations: 11.16 kB / 380.6 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002091/0.4021, allocations: 1.802 MB / 382.4 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.4021, allocations: 0 / 382.4 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005522/0.4026, allocations: 423.8 kB / 382.8 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.4028, allocations: 126.3 kB / 383 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.2e-05/0.4028, allocations: 0 / 383 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.4031, allocations: 28.03 kB / 383 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.4031, allocations: 19.53 kB / 383 MB, free: 3.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.4032, allocations: 7.906 kB / 383 MB, free: 3.973 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.000156/0.4033, allocations: 155.8 kB / 383.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005093/0.4038, allocations: 75.84 kB / 383.2 MB, free: 3.77 MB / 266.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.000162/0.404, allocations: 102.9 kB / 383.3 MB, free: 3.664 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006156/0.4046, allocations: 291.8 kB / 383.6 MB, free: 3.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.4047, allocations: 4 kB / 383.6 MB, free: 3.426 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000347/0.405, allocations: 215.1 kB / 383.8 MB, free: 3.242 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.4054, allocations: 48.31 kB / 383.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000962/0.4063, allocations: 396.1 kB / 384.3 MB, free: 2.828 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.4068, allocations: 0.7815 MB / 385.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4068, allocations: 4 kB / 385.1 MB, free: 2.02 MB / 266.7 MB Notification: Performance of Templates: time 0.008729/0.4156, allocations: 3.952 MB / 389 MB, free: 14.07 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)