Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 101.5 kB / 16.5 MB, free: 6.645 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.001079/0.001079, allocations: 194.8 kB / 17.42 MB, free: 6.066 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.778/1.778, allocations: 205.1 MB / 223.3 MB, free: 12.47 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.001243/0.001243, allocations: 51.92 kB / 279.3 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1348, allocations: 46.64 MB / 326 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004941/0.1398, allocations: 2.92 MB / 328.9 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1411, allocations: 0.7643 MB / 329.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.1413, allocations: 8 kB / 329.7 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.1415, allocations: 39.69 kB / 329.7 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.1417, allocations: 83.31 kB / 329.8 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.142, allocations: 91.92 kB / 329.9 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.1425, allocations: 386.2 kB / 330.2 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.1428, allocations: 111.9 kB / 330.3 MB, free: 484 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.143, allocations: 123.5 kB / 330.5 MB, free: 360 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002463/0.1432, allocations: 155.3 kB / 330.6 MB, free: 204 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.333e-05/0.1433, allocations: 20 kB / 330.6 MB, free: 184 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.631e-05/0.1434, allocations: 23.94 kB / 330.7 MB, free: 160 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.462e-05/0.1435, allocations: 59.75 kB / 330.7 MB, free: 100 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.1437, allocations: 159.2 kB / 330.9 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004623/0.1442, allocations: 414.8 kB / 331.3 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.1442, allocations: 4 kB / 331.3 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1442, allocations: 0 / 331.3 MB, free: 15.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.1442, allocations: 0 / 331.3 MB, free: 15.53 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001188/0.1454, allocations: 0.6168 MB / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.1455, allocations: 8.031 kB / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.219e-05/0.1455, allocations: 36.55 kB / 331.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.1459, allocations: 287.5 kB / 332.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.146, allocations: 20.94 kB / 332.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.765e-05/0.146, allocations: 24.38 kB / 332.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.1466, allocations: 296.9 kB / 332.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1466, allocations: 0 / 332.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.1466, allocations: 8 kB / 332.6 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1467, allocations: 8 kB / 332.6 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.1471, allocations: 202.1 kB / 332.8 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.1488, allocations: 1.148 MB / 333.9 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005021/0.1493, allocations: 226.6 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.1496, allocations: 140.8 kB / 334.3 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1496, allocations: 4 kB / 334.3 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000396/0.15, allocations: 174.7 kB / 334.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.15, allocations: 3.938 kB / 334.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001367/0.1514, allocations: 0.5146 MB / 335 MB, free: 11.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.92e-05/0.1515, allocations: 132.5 kB / 335.1 MB, free: 11.44 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.1517, allocations: 240.9 kB / 335.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.1518, allocations: 33.7 kB / 335.4 MB, free: 11.15 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.1519, allocations: 168.4 kB / 335.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/0.152, allocations: 71 kB / 335.6 MB, free: 10.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.002e-05/0.1521, allocations: 45.7 kB / 335.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1522, allocations: 338.8 kB / 336 MB, free: 10.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.1524, allocations: 71.97 kB / 336.1 MB, free: 10.45 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1526, allocations: 125 kB / 336.2 MB, free: 10.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.1529, allocations: 175.4 kB / 336.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1529, allocations: 3.938 kB / 336.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004749/0.1534, allocations: 290 kB / 336.6 MB, free: 9.832 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1534, allocations: 4 kB / 336.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1534, allocations: 0 / 336.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003668/0.1538, allocations: 96.88 kB / 336.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.1539, allocations: 31.92 kB / 336.8 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.1562, allocations: 1.936 MB / 338.7 MB, free: 7.629 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.1564, allocations: 31.8 kB / 338.7 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1564, allocations: 8 kB / 338.7 MB, free: 7.59 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002161/0.1567, allocations: 149.9 kB / 338.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.196e-05/0.1567, allocations: 27.66 kB / 338.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.1568, allocations: 30.17 kB / 338.9 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1568, allocations: 7.938 kB / 338.9 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.1568, allocations: 0 / 338.9 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1568, allocations: 3.984 kB / 339 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.1578, allocations: 0.7654 MB / 339.7 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1578, allocations: 4 kB / 339.7 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1579, allocations: 23.92 kB / 339.7 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002557/0.1582, allocations: 92.84 kB / 339.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.1582, allocations: 0 / 339.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.1604, allocations: 1.948 MB / 341.8 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1604, allocations: 0 / 341.8 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006851/0.1611, allocations: 452.9 kB / 342.2 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.1612, allocations: 120.8 kB / 342.3 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.1613, allocations: 4 kB / 342.3 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.1615, allocations: 31.98 kB / 342.4 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1616, allocations: 31.94 kB / 342.4 MB, free: 3.668 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1616, allocations: 8 kB / 342.4 MB, free: 3.66 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.1618, allocations: 176.5 kB / 342.6 MB, free: 3.488 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1618, allocations: 0 / 342.6 MB, free: 3.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004699/0.1623, allocations: 91.89 kB / 342.7 MB, free: 3.398 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001672/0.1624, allocations: 111.2 kB / 342.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007042/0.1631, allocations: 350.4 kB / 343.1 MB, free: 2.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1632, allocations: 0 / 343.1 MB, free: 2.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004101/0.1636, allocations: 262.7 kB / 343.4 MB, free: 2.652 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.1641, allocations: 56.44 kB / 343.4 MB, free: 2.598 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.1654, allocations: 0.7028 MB / 344.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.1659, allocations: 0.7713 MB / 344.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.166, allocations: 22.28 kB / 344.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.202e-05/0.1661, allocations: 19.44 kB / 345 MB, free: 1.031 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1661, allocations: 0 / 345 MB, free: 1.031 MB / 286.1 MB Notification: Performance of Templates: time 0.009507/0.1756, allocations: 4.459 MB / 349.4 MB, free: 12.58 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)