Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00213/0.002129, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 96.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.363e-05/2.354e-05, allocations: 7.984 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3386, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.4681, allocations: 79.67 MB / 442 MB, free: 6.637 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.4685, allocations: 72.8 kB / 442.1 MB, free: 6.566 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04259/0.5111, allocations: 8.464 MB / 450.5 MB, free: 14.12 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5111, allocations: 1.641 kB / 450.5 MB, free: 14.12 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.976e-05/0.5112, allocations: 12 kB / 450.6 MB, free: 14.11 MB / 347.1 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.00329/0.5145, allocations: 0.8363 MB / 451.4 MB, free: 13.22 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.5146, allocations: 8.031 kB / 451.4 MB, free: 13.21 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.5148, allocations: 55.34 kB / 451.5 MB, free: 13.16 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00083/0.5157, allocations: 379.9 kB / 451.8 MB, free: 12.75 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/0.5157, allocations: 15.95 kB / 451.8 MB, free: 12.73 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.5158, allocations: 31.88 kB / 451.9 MB, free: 12.7 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001161/0.517, allocations: 365.5 kB / 452.2 MB, free: 12.34 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.5182, allocations: 407.9 kB / 452.6 MB, free: 11.92 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.5182, allocations: 0 / 452.6 MB, free: 11.92 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.5183, allocations: 7.938 kB / 452.6 MB, free: 11.91 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.5183, allocations: 8 kB / 452.6 MB, free: 11.91 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005918/0.5242, allocations: 1.968 MB / 454.6 MB, free: 9.859 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005848/0.5301, allocations: 0.6984 MB / 455.3 MB, free: 9.148 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007689/0.531, allocations: 249.2 kB / 455.6 MB, free: 8.902 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.531, allocations: 7.984 kB / 455.6 MB, free: 8.895 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000733/0.5318, allocations: 284.5 kB / 455.8 MB, free: 8.602 MB / 347.1 MB Notification: Performance of pre-optimization done (n=39): time 2.765e-06/0.5318, allocations: 0 / 455.8 MB, free: 8.602 MB / 347.1 MB Notification: Performance of matching and sorting (n=39): time 0.002065/0.5339, allocations: 0.5219 MB / 456.4 MB, free: 8.07 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.534, allocations: 89.09 kB / 456.4 MB, free: 7.965 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005653/0.5346, allocations: 298.4 kB / 456.7 MB, free: 7.676 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 9.489e-05/0.5347, allocations: 29.7 kB / 456.8 MB, free: 7.641 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.5349, allocations: 271 kB / 457 MB, free: 7.375 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.5351, allocations: 126.1 kB / 457.2 MB, free: 7.25 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.5352, allocations: 0 / 457.2 MB, free: 7.25 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5353, allocations: 326.8 kB / 457.5 MB, free: 6.922 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.5358, allocations: 158.4 kB / 457.6 MB, free: 6.766 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005206/0.5364, allocations: 201.7 kB / 457.8 MB, free: 6.559 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.5368, allocations: 149.8 kB / 458 MB, free: 6.414 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5369, allocations: 0 / 458 MB, free: 6.414 MB / 347.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001818/0.5387, allocations: 0.5104 MB / 458.5 MB, free: 5.895 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.193e-05/0.5388, allocations: 33.69 kB / 458.5 MB, free: 5.855 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.5388, allocations: 0 / 458.5 MB, free: 5.855 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/0.5403, allocations: 340.4 kB / 458.9 MB, free: 5.523 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008725/0.5412, allocations: 99.86 kB / 458.9 MB, free: 5.426 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/0.5534, allocations: 2.998 MB / 461.9 MB, free: 2.309 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.5547, allocations: 95.66 kB / 462 MB, free: 2.215 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.5548, allocations: 12 kB / 462.1 MB, free: 2.203 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE(unit = "V" ) "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.000291/0.5551, allocations: 126.6 kB / 462.2 MB, free: 2.074 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.5552, allocations: 43.61 kB / 462.2 MB, free: 2.031 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.5554, allocations: 48.67 kB / 462.3 MB, free: 1.984 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.5555, allocations: 4 kB / 462.3 MB, free: 1.98 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5555, allocations: 0 / 462.3 MB, free: 1.98 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.5555, allocations: 2.344 kB / 462.3 MB, free: 1.98 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009915/0.5565, allocations: 0.5254 MB / 462.8 MB, free: 1.414 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.5565, allocations: 0 / 462.8 MB, free: 1.414 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.5574, allocations: 83.94 kB / 462.9 MB, free: 1.332 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001438/0.5588, allocations: 340.5 kB / 463.2 MB, free: 0.9961 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-05/0.5589, allocations: 4 kB / 463.2 MB, free: 0.9922 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/0.571, allocations: 2.995 MB / 466.2 MB, free: 13.88 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.5711, allocations: 3.953 kB / 466.2 MB, free: 13.88 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.5738, allocations: 0.7979 MB / 467 MB, free: 13.06 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003816/0.5742, allocations: 172.5 kB / 467.2 MB, free: 12.87 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.5743, allocations: 4 kB / 467.2 MB, free: 12.87 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.5754, allocations: 75.92 kB / 467.3 MB, free: 12.79 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.5757, allocations: 51.92 kB / 467.3 MB, free: 12.74 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-05/0.5757, allocations: 11.98 kB / 467.3 MB, free: 12.73 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0004197/0.5762, allocations: 240.6 kB / 467.6 MB, free: 12.5 MB / 363.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5762, allocations: 0 / 467.6 MB, free: 12.5 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009274/0.5771, allocations: 159.6 kB / 467.7 MB, free: 12.34 MB / 363.1 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.0002677/0.5774, allocations: 125.5 kB / 467.8 MB, free: 12.21 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.5796, allocations: 0.6288 MB / 468.5 MB, free: 11.56 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.5797, allocations: 0 / 468.5 MB, free: 11.56 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.5811, allocations: 413.5 kB / 468.9 MB, free: 11.15 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.5819, allocations: 65.52 kB / 468.9 MB, free: 11.09 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004069/0.5859, allocations: 0.8813 MB / 469.8 MB, free: 10.17 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000516/0.5865, allocations: 0.8356 MB / 470.6 MB, free: 9.312 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002447/0.5867, allocations: 27.44 kB / 470.7 MB, free: 9.285 MB / 363.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5868, allocations: 4 kB / 470.7 MB, free: 9.281 MB / 363.1 MB Notification: Performance of Templates: time 0.01964/0.6064, allocations: 8.327 MB / 479 MB, free: 1 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)