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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 86.81 kB / 16.31 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 187.3 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006122/0.0006125, allocations: 10.19 kB / 280.1 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1527, allocations: 47.58 MB / 327.7 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004709/0.1575, allocations: 3.355 MB / 331.1 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.16, allocations: 0.9868 MB / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002979/0.1604, allocations: 8 kB / 332.1 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.1606, allocations: 55.53 kB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003226/0.1609, allocations: 146.8 kB / 332.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.1614, allocations: 127.8 kB / 332.4 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007474/0.1621, allocations: 0.6653 MB / 333.1 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003957/0.1625, allocations: 143.8 kB / 333.2 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004304/0.163, allocations: 227.2 kB / 333.4 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004054/0.1634, allocations: 282.8 kB / 333.7 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.762e-05/0.1635, allocations: 36 kB / 333.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.831e-05/0.1636, allocations: 32 kB / 333.8 MB, free: 14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1637, allocations: 99.58 kB / 333.9 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.1639, allocations: 125.4 kB / 334 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007143/0.1646, allocations: 0.5962 MB / 334.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.1646, allocations: 0 / 334.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1646, allocations: 0 / 334.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1647, allocations: 0 / 334.6 MB, free: 13.18 MB / 286.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.002601/0.1673, allocations: 0.9525 MB / 335.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.1673, allocations: 12.03 kB / 335.5 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.1675, allocations: 55.34 kB / 335.6 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006763/0.1682, allocations: 381 kB / 336 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.782e-05/0.1683, allocations: 33 kB / 336 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.08e-05/0.1683, allocations: 36 kB / 336 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1699, allocations: 0.5942 MB / 336.6 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.17, allocations: 3.938 kB / 336.6 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.17, allocations: 16 kB / 336.7 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.17, allocations: 8 kB / 336.7 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.1718, allocations: 0.648 MB / 337.3 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.1756, allocations: 2.055 MB / 339.4 MB, free: 8.176 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/0.1793, allocations: 0.9288 MB / 340.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.1805, allocations: 401.6 kB / 340.7 MB, free: 6.844 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.195e-05/0.1806, allocations: 15.73 kB / 340.7 MB, free: 6.828 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001389/0.182, allocations: 439.3 kB / 341.1 MB, free: 6.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.196e-06/0.182, allocations: 0 / 341.1 MB, free: 6.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009662/0.1917, allocations: 2.044 MB / 343.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.1918, allocations: 81.11 kB / 343.3 MB, free: 4.215 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005782/0.1924, allocations: 381.7 kB / 343.6 MB, free: 3.828 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.762e-05/0.1925, allocations: 33.7 kB / 343.7 MB, free: 3.789 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.1927, allocations: 224.6 kB / 343.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.1928, allocations: 126.1 kB / 344 MB, free: 3.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.1929, allocations: 12 kB / 344 MB, free: 3.426 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.1931, allocations: 350.8 kB / 344.4 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009578/0.194, allocations: 308.6 kB / 344.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009485/0.195, allocations: 350.1 kB / 345 MB, free: 2.418 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008311/0.1958, allocations: 323.4 kB / 345.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.1959, allocations: 0 / 345.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004695/0.2006, allocations: 1.175 MB / 346.5 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.314e-05/0.2007, allocations: 33.7 kB / 346.5 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.2007, allocations: 0 / 346.5 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.2021, allocations: 424.4 kB / 346.9 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.2026, allocations: 87.94 kB / 347 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008647/0.2112, allocations: 3.51 MB / 350.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008254/0.2121, allocations: 99.66 kB / 350.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/0.2122, allocations: 16 kB / 350.6 MB, free: 12.61 MB / 302.1 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.0003995/0.2126, allocations: 165.8 kB / 350.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.556e-05/0.2127, allocations: 51.39 kB / 350.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.2128, allocations: 52.36 kB / 350.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.2128, allocations: 7.938 kB / 350.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.2128, allocations: 0 / 350.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.2129, allocations: 3.938 kB / 350.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009658/0.2138, allocations: 0.5912 MB / 351.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2139, allocations: 4 kB / 351.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004266/0.2143, allocations: 83.92 kB / 351.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/0.2155, allocations: 421.7 kB / 352 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/0.2156, allocations: 15.98 kB / 352 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00822/0.2238, allocations: 3.473 MB / 355.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.2239, allocations: 3.938 kB / 355.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004529/0.2284, allocations: 1.416 MB / 356.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004136/0.2289, allocations: 172.5 kB / 357.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.836e-05/0.229, allocations: 8 kB / 357.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005274/0.2295, allocations: 83.92 kB / 357.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.2297, allocations: 51.92 kB / 357.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.2297, allocations: 12 kB / 357.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003787/0.2301, allocations: 271.2 kB / 357.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2301, allocations: 4 kB / 357.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007924/0.2309, allocations: 171.7 kB / 357.7 MB, free: 5.348 MB / 302.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) * 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.000262/0.2312, allocations: 111.1 kB / 357.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002654/0.2339, allocations: 0.939 MB / 358.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.2339, allocations: 0 / 358.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.2353, allocations: 0.5802 MB / 359.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.2359, allocations: 77.45 kB / 359.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.2391, allocations: 1.38 MB / 360.8 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.2397, allocations: 0.8313 MB / 361.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002939/0.24, allocations: 43.27 kB / 361.6 MB, free: 1.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2401, allocations: 23.44 kB / 361.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of SimCode: time 2.104e-06/0.2401, allocations: 0 / 361.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of Templates: time 0.02027/0.2604, allocations: 11.86 MB / 373.5 MB, free: 5.402 MB / 318.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)