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.001641/0.001641, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.458/1.458, allocations: 170.6 MB / 183.8 MB, free: 11.49 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.001582/0.001583, allocations: 114.7 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.662e-05/2.666e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07195/0.07199, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2599/0.332, allocations: 70.87 MB / 378.5 MB, free: 5.406 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001759/0.3322, allocations: 74.7 kB / 378.6 MB, free: 5.367 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0244/0.3566, allocations: 8.299 MB / 386.9 MB, free: 14.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3566, allocations: 0 / 386.9 MB, free: 14.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.129e-05/0.3567, allocations: 12 kB / 386.9 MB, free: 14.21 MB / 282.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.001811/0.3585, allocations: 0.8364 MB / 387.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3586, allocations: 8.031 kB / 387.7 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.3587, allocations: 55.34 kB / 387.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004927/0.3592, allocations: 376.2 kB / 388.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.3592, allocations: 30.8 kB / 388.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.517e-05/0.3593, allocations: 40.69 kB / 388.2 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007122/0.36, allocations: 453.8 kB / 388.7 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.36, allocations: 0 / 388.7 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.611e-05/0.3601, allocations: 17.12 kB / 388.7 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.3601, allocations: 11.98 kB / 388.7 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000641/0.3608, allocations: 388.2 kB / 389.1 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003347/0.3641, allocations: 2.032 MB / 391.1 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003099/0.3672, allocations: 0.7166 MB / 391.8 MB, free: 10.15 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.3676, allocations: 261.2 kB / 392.1 MB, free: 9.996 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.3677, allocations: 4 kB / 392.1 MB, free: 9.992 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00047/0.3682, allocations: 290.5 kB / 392.4 MB, free: 9.781 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 2.294e-06/0.3682, allocations: 0 / 392.4 MB, free: 9.781 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.001237/0.3694, allocations: 0.5555 MB / 392.9 MB, free: 9.391 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/0.3695, allocations: 92.98 kB / 393 MB, free: 9.281 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.3699, allocations: 320.1 kB / 393.3 MB, free: 9.023 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.3699, allocations: 36.95 kB / 393.4 MB, free: 8.988 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.3701, allocations: 228.5 kB / 393.6 MB, free: 8.824 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3702, allocations: 131.9 kB / 393.7 MB, free: 8.711 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.3702, allocations: 6.875 kB / 393.7 MB, free: 8.711 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3704, allocations: 351.5 kB / 394.1 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.3707, allocations: 159.8 kB / 394.2 MB, free: 8.289 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.371, allocations: 210 kB / 394.4 MB, free: 8.156 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.3712, allocations: 181 kB / 394.6 MB, free: 8.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3713, allocations: 4 kB / 394.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001059/0.3723, allocations: 0.5975 MB / 395.2 MB, free: 7.609 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.3724, allocations: 32.64 kB / 395.2 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3724, allocations: 0 / 395.2 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008506/0.3732, allocations: 340.7 kB / 395.6 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.3737, allocations: 91.92 kB / 395.7 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00666/0.3804, allocations: 3.075 MB / 398.7 MB, free: 4.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006789/0.3811, allocations: 110.6 kB / 398.8 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.3811, allocations: 15.5 kB / 398.9 MB, free: 4.598 MB / 282.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.0001307/0.3813, allocations: 116.4 kB / 399 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.977e-05/0.3813, allocations: 47.52 kB / 399 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.3815, allocations: 52.38 kB / 399.1 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.3815, allocations: 8.031 kB / 399.1 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3815, allocations: 3.984 kB / 399.1 MB, free: 4.406 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3815, allocations: 7.953 kB / 399.1 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006048/0.3821, allocations: 0.5805 MB / 399.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3821, allocations: 0 / 399.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.3826, allocations: 91.48 kB / 399.8 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007752/0.3834, allocations: 331.1 kB / 400.1 MB, free: 3.598 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.3834, allocations: 11.11 kB / 400.1 MB, free: 3.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006472/0.3899, allocations: 3.07 MB / 403.2 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3899, allocations: 7.938 kB / 403.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.3915, allocations: 0.826 MB / 404 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.3917, allocations: 173 kB / 404.2 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-05/0.3918, allocations: 18.45 kB / 404.2 MB, free: 360 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005751/0.3924, allocations: 83.67 kB / 404.3 MB, free: 280 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.3925, allocations: 54.86 kB / 404.3 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.3926, allocations: 11.98 kB / 404.3 MB, free: 224 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002581/0.3929, allocations: 256.6 kB / 404.6 MB, free: 24 kB / 282.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3929, allocations: 0 / 404.6 MB, free: 24 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.000594/0.3935, allocations: 161.6 kB / 404.7 MB, free: 15.88 MB / 298.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.0001784/0.3936, allocations: 130.5 kB / 404.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.395, allocations: 0.6677 MB / 405.5 MB, free: 15.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.395, allocations: 0 / 405.5 MB, free: 15.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008786/0.3959, allocations: 434.3 kB / 406 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.3964, allocations: 75.23 kB / 406 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.3986, allocations: 0.7706 MB / 406.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.399, allocations: 0.8397 MB / 407.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002307/0.3992, allocations: 43.22 kB / 407.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.578e-05/0.3993, allocations: 19.44 kB / 407.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3993, allocations: 0 / 407.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of Templates: time 0.01666/0.416, allocations: 10.55 MB / 418.2 MB, free: 2.738 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)