Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001319/0.001319, allocations: 171.5 kB / 7.638 MB, free: 1.418 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.333/1.333, allocations: 170.7 MB / 178.7 MB, free: 15.65 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.001564/0.001565, allocations: 115.4 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.554e-05/3.558e-05, allocations: 4 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08097/0.08103, allocations: 38.77 MB / 301 MB, free: 3.621 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2865/0.3676, allocations: 70.2 MB / 371.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.3678, allocations: 67.03 kB / 371.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02474/0.3926, allocations: 8.212 MB / 379.5 MB, free: 7.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3926, allocations: 0 / 379.5 MB, free: 7.168 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.022e-05/0.3927, allocations: 8 kB / 379.5 MB, free: 7.16 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002061/0.3948, allocations: 0.8462 MB / 380.3 MB, free: 6.297 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3948, allocations: 8.031 kB / 380.3 MB, free: 6.289 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.395, allocations: 59.34 kB / 380.4 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005986/0.3956, allocations: 368.7 kB / 380.7 MB, free: 5.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/0.3956, allocations: 11.95 kB / 380.8 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.188e-05/0.3957, allocations: 24 kB / 380.8 MB, free: 5.852 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007066/0.3965, allocations: 364.6 kB / 381.1 MB, free: 5.656 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006908/0.3972, allocations: 412.6 kB / 381.5 MB, free: 5.348 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3972, allocations: 0 / 381.5 MB, free: 5.348 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.3972, allocations: 2.078 kB / 381.5 MB, free: 5.348 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.3973, allocations: 8 kB / 381.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003586/0.4008, allocations: 1.964 MB / 383.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002948/0.4038, allocations: 0.6921 MB / 384.2 MB, free: 3.234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004241/0.4043, allocations: 253.3 kB / 384.5 MB, free: 3.086 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.523e-05/0.4043, allocations: 4 kB / 384.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000478/0.4048, allocations: 280 kB / 384.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.374e-06/0.4048, allocations: 0 / 384.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.001157/0.406, allocations: 0.5254 MB / 385.3 MB, free: 2.504 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.406, allocations: 81.11 kB / 385.3 MB, free: 2.406 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.4064, allocations: 298.9 kB / 385.6 MB, free: 2.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.4065, allocations: 32.89 kB / 385.7 MB, free: 2.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.4066, allocations: 223.5 kB / 385.9 MB, free: 1.984 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.4067, allocations: 120.2 kB / 386 MB, free: 1.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.4068, allocations: 0 / 386 MB, free: 1.879 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4069, allocations: 356.4 kB / 386.3 MB, free: 1.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.4072, allocations: 157.7 kB / 386.5 MB, free: 1.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.4075, allocations: 194.5 kB / 386.7 MB, free: 1.336 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.4077, allocations: 150.3 kB / 386.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.4077, allocations: 0 / 386.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001031/0.4088, allocations: 0.5395 MB / 387.4 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.249e-05/0.4088, allocations: 37.61 kB / 387.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.4089, allocations: 0 / 387.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008482/0.4097, allocations: 342.7 kB / 387.7 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004443/0.4102, allocations: 91.56 kB / 387.8 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006425/0.4166, allocations: 2.992 MB / 390.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007087/0.4174, allocations: 95.67 kB / 390.9 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.4174, allocations: 11.88 kB / 390.9 MB, free: 13.95 MB / 282.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.0002024/0.4176, allocations: 117.4 kB / 391 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.439e-05/0.4177, allocations: 43.53 kB / 391.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.4179, allocations: 55.61 kB / 391.1 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.4179, allocations: 4 kB / 391.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.4179, allocations: 4 kB / 391.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4179, allocations: 0 / 391.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/0.4186, allocations: 0.523 MB / 391.7 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4186, allocations: 0 / 391.7 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.419, allocations: 91.81 kB / 391.8 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007675/0.4198, allocations: 331.9 kB / 392.1 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/0.4199, allocations: 3.984 kB / 392.1 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006285/0.4262, allocations: 2.992 MB / 395.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.4262, allocations: 3.953 kB / 395.1 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.4277, allocations: 0.7937 MB / 395.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.428, allocations: 167 kB / 396 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.897e-05/0.4281, allocations: 0 / 396 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005951/0.4287, allocations: 78.8 kB / 396.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.4289, allocations: 46.61 kB / 396.2 MB, free: 9.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.4289, allocations: 15.61 kB / 396.2 MB, free: 9.746 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002702/0.4292, allocations: 230.7 kB / 396.4 MB, free: 9.57 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4292, allocations: 4 kB / 396.4 MB, free: 9.566 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006444/0.4299, allocations: 155.6 kB / 396.6 MB, free: 9.414 MB / 282.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.0002181/0.4301, allocations: 111.2 kB / 396.7 MB, free: 9.301 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.4314, allocations: 0.6261 MB / 397.3 MB, free: 8.836 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4315, allocations: 0 / 397.3 MB, free: 8.836 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008724/0.4323, allocations: 422.3 kB / 397.7 MB, free: 8.523 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.4327, allocations: 54.22 kB / 397.8 MB, free: 8.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.435, allocations: 0.7454 MB / 398.5 MB, free: 7.801 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.4354, allocations: 0.8434 MB / 399.4 MB, free: 6.93 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002404/0.4357, allocations: 35.28 kB / 399.4 MB, free: 6.898 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.999e-05/0.4358, allocations: 31.36 kB / 399.4 MB, free: 6.875 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4358, allocations: 0 / 399.4 MB, free: 6.875 MB / 282.7 MB Notification: Performance of Templates: time 0.01606/0.4518, allocations: 9.477 MB / 408.9 MB, free: 13.41 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)