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.001182/0.001182, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.453/1.453, allocations: 194.3 MB / 208.4 MB, free: 6.719 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.001681/0.001681, allocations: 124.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.106e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07228/0.07232, allocations: 44.5 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3064/0.3788, allocations: 75.86 MB / 425.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.379, allocations: 78.73 kB / 425.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02137/0.4004, allocations: 8.257 MB / 433.6 MB, free: 7.699 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4004, allocations: 4 kB / 433.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.384e-05/0.4004, allocations: 10.75 kB / 433.6 MB, free: 7.695 MB / 298.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.001633/0.4021, allocations: 0.8283 MB / 434.5 MB, free: 7.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4021, allocations: 7.688 kB / 434.5 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.4022, allocations: 54.41 kB / 434.5 MB, free: 7.062 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.4027, allocations: 374.3 kB / 434.9 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.4027, allocations: 31.7 kB / 434.9 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.4028, allocations: 33.44 kB / 435 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006937/0.4035, allocations: 461.7 kB / 435.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.4035, allocations: 0 / 435.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.785e-05/0.4036, allocations: 14.09 kB / 435.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4036, allocations: 11.47 kB / 435.4 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000598/0.4042, allocations: 388.5 kB / 435.8 MB, free: 6.613 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.4071, allocations: 2.044 MB / 437.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.4102, allocations: 0.7051 MB / 438.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003937/0.4106, allocations: 269.8 kB / 438.8 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.4106, allocations: 7.797 kB / 438.8 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004846/0.4111, allocations: 291.3 kB / 439.1 MB, free: 5.195 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.104e-06/0.4111, allocations: 0 / 439.1 MB, free: 5.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001222/0.4124, allocations: 0.5534 MB / 439.7 MB, free: 5.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.4124, allocations: 88.83 kB / 439.8 MB, free: 4.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.4127, allocations: 317.6 kB / 440.1 MB, free: 4.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.4128, allocations: 32.64 kB / 440.1 MB, free: 4.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.4129, allocations: 235.1 kB / 440.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.994e-05/0.413, allocations: 131.1 kB / 440.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.4131, allocations: 7.281 kB / 440.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.752e-05/0.4131, allocations: 352.2 kB / 440.8 MB, free: 4.242 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/0.4134, allocations: 164.1 kB / 441 MB, free: 4.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.4137, allocations: 205.8 kB / 441.2 MB, free: 4.203 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.414, allocations: 185.8 kB / 441.4 MB, free: 4.156 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.414, allocations: 0 / 441.4 MB, free: 4.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009655/0.4149, allocations: 0.6032 MB / 442 MB, free: 4.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.415, allocations: 32.95 kB / 442 MB, free: 3.973 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.415, allocations: 7.812 kB / 442 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008093/0.4158, allocations: 333 kB / 442.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.4163, allocations: 100.3 kB / 442.4 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005969/0.4222, allocations: 3.08 MB / 445.5 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006916/0.423, allocations: 107.5 kB / 445.6 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.423, allocations: 11.88 kB / 445.6 MB, free: 1.309 MB / 298.7 MB 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.0001316/0.4232, allocations: 121.1 kB / 445.7 MB, free: 1.195 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.941e-05/0.4232, allocations: 43.52 kB / 445.8 MB, free: 1.152 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.4234, allocations: 63.08 kB / 445.8 MB, free: 1.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.4234, allocations: 4 kB / 445.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4234, allocations: 4 kB / 445.9 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4234, allocations: 0 / 445.9 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005219/0.4239, allocations: 0.5824 MB / 446.4 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4239, allocations: 0 / 446.4 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004191/0.4244, allocations: 91.86 kB / 446.5 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007194/0.4251, allocations: 332.3 kB / 446.8 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.4251, allocations: 15.88 kB / 446.9 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006638/0.4318, allocations: 3.066 MB / 449.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4318, allocations: 0 / 449.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.4336, allocations: 0.8305 MB / 450.8 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/0.4339, allocations: 174.8 kB / 450.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.475e-05/0.434, allocations: 6.312 kB / 450.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/0.4346, allocations: 90.05 kB / 451 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.4347, allocations: 47.17 kB / 451.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/0.4348, allocations: 15.23 kB / 451.1 MB, free: 12.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003348/0.4351, allocations: 249.4 kB / 451.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4351, allocations: 0 / 451.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007168/0.4359, allocations: 176.5 kB / 451.5 MB, free: 12.6 MB / 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.0002821/0.4361, allocations: 114.9 kB / 451.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.4376, allocations: 0.6587 MB / 452.3 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4376, allocations: 0 / 452.3 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008808/0.4385, allocations: 442.9 kB / 452.7 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.4389, allocations: 74.8 kB / 452.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.4412, allocations: 0.7674 MB / 453.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.4416, allocations: 0.8397 MB / 454.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002273/0.4418, allocations: 39.27 kB / 454.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.051e-05/0.4419, allocations: 26.81 kB / 454.5 MB, free: 9.996 MB / 314.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4419, allocations: 4 kB / 454.5 MB, free: 9.992 MB / 314.7 MB Notification: Performance of Templates: time 0.01677/0.4587, allocations: 10.53 MB / 465 MB, free: 15.5 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)