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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001527/0.001527, allocations: 187.8 kB / 8.351 MB, free: 0.707 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.44/1.44, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001575/0.001575, allocations: 115.6 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.646e-05/1.642e-05, allocations: 4 kB / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08102/0.08105, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2584/0.3395, allocations: 75.19 MB / 417.8 MB, free: 20.68 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.3398, allocations: 72.05 kB / 417.8 MB, free: 20.64 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02089/0.3607, allocations: 8.183 MB / 426 MB, free: 13.8 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3607, allocations: 4 kB / 426 MB, free: 13.8 MB / 315.1 MB Notification: Performance of Transformations before backend: time 2.042e-05/0.3607, allocations: 12.38 kB / 426 MB, free: 13.79 MB / 315.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.00157/0.3623, allocations: 0.8294 MB / 426.9 MB, free: 12.93 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3624, allocations: 8.031 kB / 426.9 MB, free: 12.93 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.066e-05/0.3624, allocations: 57.06 kB / 426.9 MB, free: 12.87 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.3628, allocations: 373.4 kB / 427.3 MB, free: 12.53 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.3629, allocations: 12 kB / 427.3 MB, free: 12.52 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.3629, allocations: 28.3 kB / 427.3 MB, free: 12.5 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005397/0.3635, allocations: 358.3 kB / 427.7 MB, free: 12.3 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005722/0.3641, allocations: 416.5 kB / 428.1 MB, free: 11.99 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3641, allocations: 0 / 428.1 MB, free: 11.99 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.153e-05/0.3641, allocations: 0 / 428.1 MB, free: 11.99 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3642, allocations: 8 kB / 428.1 MB, free: 11.98 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.367, allocations: 1.964 MB / 430.1 MB, free: 10.39 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002877/0.3698, allocations: 0.6891 MB / 430.8 MB, free: 9.883 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.3702, allocations: 252.9 kB / 431 MB, free: 9.734 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.3702, allocations: 4.625 kB / 431 MB, free: 9.73 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003903/0.3706, allocations: 283.2 kB / 431.3 MB, free: 9.52 MB / 315.1 MB Notification: Performance of pre-optimization done (n=39): time 1.753e-06/0.3706, allocations: 2.344 kB / 431.3 MB, free: 9.52 MB / 315.1 MB Notification: Performance of matching and sorting (n=39): time 0.001032/0.3717, allocations: 0.5217 MB / 431.8 MB, free: 9.152 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.3717, allocations: 81.11 kB / 431.9 MB, free: 9.055 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.372, allocations: 295.7 kB / 432.2 MB, free: 8.82 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.372, allocations: 25.7 kB / 432.2 MB, free: 8.789 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3721, allocations: 232 kB / 432.4 MB, free: 8.621 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.768e-05/0.3722, allocations: 118.3 kB / 432.5 MB, free: 8.52 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.3722, allocations: 0 / 432.5 MB, free: 8.52 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 6.714e-05/0.3723, allocations: 352.5 kB / 432.9 MB, free: 8.184 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.3725, allocations: 160 kB / 433 MB, free: 8.098 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002511/0.3728, allocations: 197.8 kB / 433.2 MB, free: 7.977 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.373, allocations: 149.3 kB / 433.4 MB, free: 7.895 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3731, allocations: 0 / 433.4 MB, free: 7.895 MB / 315.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008723/0.3739, allocations: 0.5396 MB / 433.9 MB, free: 7.523 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.374, allocations: 37.69 kB / 434 MB, free: 7.48 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.374, allocations: 0 / 434 MB, free: 7.48 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000777/0.3748, allocations: 332.8 kB / 434.3 MB, free: 7.238 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.3752, allocations: 96.48 kB / 434.4 MB, free: 7.145 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005645/0.3808, allocations: 3.003 MB / 437.4 MB, free: 4.688 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006104/0.3815, allocations: 91.72 kB / 437.5 MB, free: 4.598 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.3815, allocations: 15 kB / 437.5 MB, free: 4.586 MB / 315.1 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.000147/0.3817, allocations: 121.7 kB / 437.6 MB, free: 4.461 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.803e-05/0.3817, allocations: 39.53 kB / 437.6 MB, free: 4.422 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.3819, allocations: 47.41 kB / 437.7 MB, free: 4.402 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3819, allocations: 4 kB / 437.7 MB, free: 4.398 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3819, allocations: 0 / 437.7 MB, free: 4.398 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3819, allocations: 3.953 kB / 437.7 MB, free: 4.395 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005031/0.3824, allocations: 0.5195 MB / 438.2 MB, free: 3.977 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3824, allocations: 8 kB / 438.2 MB, free: 3.969 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004043/0.3828, allocations: 83.19 kB / 438.3 MB, free: 3.891 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006829/0.3835, allocations: 337.8 kB / 438.6 MB, free: 3.645 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.708e-05/0.3836, allocations: 4 kB / 438.6 MB, free: 3.641 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005577/0.3891, allocations: 2.989 MB / 441.6 MB, free: 1.195 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3892, allocations: 0 / 441.6 MB, free: 1.195 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3904, allocations: 0.801 MB / 442.4 MB, free: 0.668 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.3906, allocations: 169.4 kB / 442.6 MB, free: 0.5156 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.53e-05/0.3907, allocations: 0 / 442.6 MB, free: 0.5156 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005441/0.3912, allocations: 83.88 kB / 442.7 MB, free: 444 kB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.3913, allocations: 54.48 kB / 442.7 MB, free: 400 kB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.214e-05/0.3914, allocations: 11.98 kB / 442.7 MB, free: 388 kB / 315.1 MB Notification: Performance of sorting global known variables: time 0.0001783/0.3916, allocations: 224.2 kB / 443 MB, free: 216 kB / 315.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3916, allocations: 0 / 443 MB, free: 216 kB / 315.1 MB Notification: Performance of remove unused functions: time 0.0006345/0.3922, allocations: 151.7 kB / 443.1 MB, free: 64 kB / 315.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.00019/0.3924, allocations: 115.6 kB / 443.2 MB, free: 15.95 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.3936, allocations: 0.6308 MB / 443.8 MB, free: 15.48 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3936, allocations: 4 kB / 443.9 MB, free: 15.48 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000798/0.3944, allocations: 409.9 kB / 444.3 MB, free: 15.18 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.3948, allocations: 53.8 kB / 444.3 MB, free: 15.14 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.397, allocations: 0.7501 MB / 445.1 MB, free: 14.46 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.3974, allocations: 0.8433 MB / 445.9 MB, free: 13.59 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.000216/0.3976, allocations: 39.27 kB / 445.9 MB, free: 13.55 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.607e-05/0.3977, allocations: 23.44 kB / 446 MB, free: 13.53 MB / 331.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3977, allocations: 0 / 446 MB, free: 13.53 MB / 331.1 MB Notification: Performance of Templates: time 0.01465/0.4124, allocations: 9.487 MB / 455.4 MB, free: 4.141 MB / 331.1 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)