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.000931/0.000931, allocations: 180.9 kB / 16.38 MB, free: 5.762 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.119/1.119, allocations: 194.5 MB / 211.6 MB, free: 3.066 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.001474/0.001474, allocations: 124.1 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002824, allocations: 12 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07393/0.07423, allocations: 44.5 MB / 355.1 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2122/0.2865, allocations: 75.94 MB / 431 MB, free: 13.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.2868, allocations: 71.97 kB / 431.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02078/0.3076, allocations: 8.27 MB / 439.3 MB, free: 6.652 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3076, allocations: 0 / 439.3 MB, free: 6.652 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.3076, allocations: 8 kB / 439.4 MB, free: 6.645 MB / 314.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.001722/0.3093, allocations: 0.9049 MB / 440.3 MB, free: 5.727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.3094, allocations: 8.031 kB / 440.3 MB, free: 5.719 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.654e-05/0.3095, allocations: 56.38 kB / 440.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.3098, allocations: 381.4 kB / 440.7 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.3099, allocations: 27.44 kB / 440.7 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.796e-05/0.3099, allocations: 38.22 kB / 440.8 MB, free: 5.266 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.311, allocations: 0.5878 MB / 441.3 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.311, allocations: 0 / 441.3 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.3111, allocations: 18.81 kB / 441.4 MB, free: 4.797 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.3111, allocations: 8 kB / 441.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.3125, allocations: 0.6443 MB / 442 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/0.3153, allocations: 2.042 MB / 444.1 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004242/0.3195, allocations: 0.9562 MB / 445 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.3196, allocations: 8.922 kB / 445 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.3207, allocations: 437.6 kB / 445.4 MB, free: 1.512 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 2.455e-06/0.3207, allocations: 0 / 445.4 MB, free: 1.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.009311/0.33, allocations: 1.969 MB / 447.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.3301, allocations: 81.11 kB / 447.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.3305, allocations: 328.7 kB / 447.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.3305, allocations: 37.7 kB / 447.9 MB, free: 15.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.3307, allocations: 228.6 kB / 448.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3308, allocations: 130.1 kB / 448.2 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.3309, allocations: 8 kB / 448.2 MB, free: 14.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.331, allocations: 354.8 kB / 448.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007868/0.3318, allocations: 300.6 kB / 448.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007689/0.3326, allocations: 346.1 kB / 449.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000774/0.3334, allocations: 323.6 kB / 449.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3334, allocations: 0 / 449.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002151/0.3355, allocations: 0.9091 MB / 450.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.803e-05/0.3356, allocations: 39.41 kB / 450.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3356, allocations: 0.5625 kB / 450.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.3367, allocations: 428.4 kB / 450.9 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.3372, allocations: 91.94 kB / 451 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008458/0.3457, allocations: 3.607 MB / 454.6 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007284/0.3465, allocations: 105.3 kB / 454.7 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/0.3465, allocations: 12 kB / 454.7 MB, free: 8.121 MB / 330.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 () * Number of clocked 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.0002507/0.3468, allocations: 169.8 kB / 454.8 MB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.995e-05/0.3469, allocations: 51.44 kB / 454.9 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.347, allocations: 52.38 kB / 455 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.347, allocations: 9.078 kB / 455 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.347, allocations: 0 / 455 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.347, allocations: 3.984 kB / 455 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005936/0.3476, allocations: 0.5756 MB / 455.5 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3476, allocations: 3.984 kB / 455.5 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.348, allocations: 79.94 kB / 455.6 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.3491, allocations: 431.5 kB / 456 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/0.3492, allocations: 8 kB / 456.1 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008128/0.3573, allocations: 3.601 MB / 459.7 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3573, allocations: 7.5 kB / 459.7 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003168/0.3605, allocations: 1.274 MB / 460.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.3608, allocations: 176.5 kB / 461.1 MB, free: 1.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.498e-05/0.3608, allocations: 10.62 kB / 461.1 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005973/0.3614, allocations: 87.92 kB / 461.2 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.3616, allocations: 47.92 kB / 461.2 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.3616, allocations: 11.92 kB / 461.3 MB, free: 1.316 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000283/0.3619, allocations: 259.2 kB / 461.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3619, allocations: 0 / 461.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005632/0.3625, allocations: 163.8 kB / 461.7 MB, free: 0.9062 MB / 330.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) * Number of clocked states: 0 () * 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.0001769/0.3627, allocations: 127.1 kB / 461.8 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.3649, allocations: 0.9393 MB / 462.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.365, allocations: 0 / 462.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.3663, allocations: 0.5726 MB / 463.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.3667, allocations: 71.84 kB / 463.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.3696, allocations: 1.275 MB / 464.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.37, allocations: 0.8358 MB / 465.5 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002185/0.3702, allocations: 35.28 kB / 465.5 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.527e-05/0.3703, allocations: 23.44 kB / 465.5 MB, free: 12.95 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3703, allocations: 0 / 465.5 MB, free: 12.95 MB / 346.7 MB Notification: Performance of Templates: time 0.01428/0.3846, allocations: 10.54 MB / 476.1 MB, free: 2.488 MB / 346.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)