Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [: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.001282/0.001282, allocations: 192.7 kB / 8.138 MB, free: 2.211 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.084/1.084, allocations: 194.2 MB / 202.8 MB, free: 8.758 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.001746/0.001746, allocations: 127.4 kB / 247.8 MB, free: 6.273 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.625e-06/7.655e-06, allocations: 4 kB / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07376/0.07378, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.2729, allocations: 75.12 MB / 417.2 MB, free: 20.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001725/0.2731, allocations: 71.66 kB / 417.2 MB, free: 19.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02187/0.295, allocations: 8.029 MB / 425.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.295, allocations: 8 kB / 425.3 MB, free: 13.28 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001759/0.2968, allocations: 0.8629 MB / 426.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2968, allocations: 8.797 kB / 426.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.2969, allocations: 55.34 kB / 426.2 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/0.2974, allocations: 378.1 kB / 426.6 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.2974, allocations: 12 kB / 426.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.2975, allocations: 20 kB / 426.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006589/0.2982, allocations: 366.6 kB / 427 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006217/0.2988, allocations: 411.4 kB / 427.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2988, allocations: 0 / 427.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.2989, allocations: 0 / 427.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.2989, allocations: 16 kB / 427.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.3021, allocations: 1.979 MB / 429.4 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.3024, allocations: 246.7 kB / 429.6 MB, free: 9.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.3028, allocations: 240.5 kB / 429.8 MB, free: 9.547 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.602e-05/0.3028, allocations: 11.86 kB / 429.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.3032, allocations: 270.7 kB / 430.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 1.633e-06/0.3032, allocations: 0 / 430.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.001165/0.3044, allocations: 0.5098 MB / 430.6 MB, free: 8.984 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.3044, allocations: 93.03 kB / 430.7 MB, free: 8.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.3047, allocations: 278.9 kB / 431 MB, free: 8.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.3048, allocations: 33.64 kB / 431 MB, free: 8.617 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.253e-05/0.3049, allocations: 178.1 kB / 431.2 MB, free: 8.453 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.305, allocations: 132.2 kB / 431.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.305, allocations: 0 / 431.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.659e-05/0.3051, allocations: 349.2 kB / 431.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.3054, allocations: 154.1 kB / 431.8 MB, free: 7.926 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.3056, allocations: 195.7 kB / 432 MB, free: 7.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.3059, allocations: 152.1 kB / 432.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3059, allocations: 0 / 432.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001005/0.3069, allocations: 0.5336 MB / 432.7 MB, free: 7.352 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3069, allocations: 4.781 kB / 432.7 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3069, allocations: 7.906 kB / 432.7 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008655/0.3078, allocations: 328.7 kB / 433 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004746/0.3083, allocations: 107.2 kB / 433.1 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006738/0.3151, allocations: 2.833 MB / 436 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006991/0.3158, allocations: 106.4 kB / 436.1 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.3158, allocations: 15.94 kB / 436.1 MB, free: 4.527 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.316, allocations: 112.7 kB / 436.2 MB, free: 4.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.781e-05/0.3161, allocations: 39.53 kB / 436.2 MB, free: 4.371 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.3162, allocations: 51.23 kB / 436.3 MB, free: 4.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3162, allocations: 7.906 kB / 436.3 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.3162, allocations: 0 / 436.3 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3162, allocations: 0 / 436.3 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005103/0.3167, allocations: 0.5331 MB / 436.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3167, allocations: 1.625 kB / 436.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/0.3172, allocations: 91.88 kB / 436.9 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008174/0.318, allocations: 331 kB / 437.2 MB, free: 3.574 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.3181, allocations: 7.25 kB / 437.2 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006692/0.3248, allocations: 2.83 MB / 440.1 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3248, allocations: 4 kB / 440.1 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001464/0.3263, allocations: 0.7951 MB / 440.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.3265, allocations: 168.6 kB / 441 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.3266, allocations: 11.44 kB / 441 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006722/0.3273, allocations: 85.05 kB / 441.1 MB, free: 456 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3274, allocations: 39.12 kB / 441.2 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.3274, allocations: 15.89 kB / 441.2 MB, free: 408 kB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001836/0.3276, allocations: 225 kB / 441.4 MB, free: 240 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004633/0.3281, allocations: 143.9 kB / 441.5 MB, free: 96 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001613/0.3283, allocations: 120.7 kB / 441.7 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.3295, allocations: 0.5639 MB / 442.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3296, allocations: 0 / 442.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009579/0.3305, allocations: 385.9 kB / 442.6 MB, free: 15.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.3309, allocations: 47.19 kB / 442.6 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.3337, allocations: 0.802 MB / 443.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005565/0.3342, allocations: 0.8658 MB / 444.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3343, allocations: 0 / 444.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of Templates: time 0.01703/0.3513, allocations: 10.12 MB / 454.4 MB, free: 3.543 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)