Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.006937/0.006937, allocations: 103.6 kB / 15.73 MB, free: 6.039 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.001242/0.001242, allocations: 193.1 kB / 16.67 MB, free: 5.969 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.601/1.601, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.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.001384/0.001384, allocations: 50.58 kB / 326.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.141, allocations: 46.62 MB / 373.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006239/0.1474, allocations: 2.871 MB / 376 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.1496, allocations: 0.7718 MB / 376.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005565/0.1503, allocations: 4 kB / 376.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000316/0.1507, allocations: 47.5 kB / 376.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000466/0.1511, allocations: 103.1 kB / 377 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.1517, allocations: 115.8 kB / 377.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006965/0.1524, allocations: 402.2 kB / 377.5 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000329/0.1527, allocations: 139.2 kB / 377.6 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003721/0.1531, allocations: 155.4 kB / 377.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000327/0.1535, allocations: 167.3 kB / 377.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.173e-05/0.1535, allocations: 36 kB / 378 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.276e-05/0.1536, allocations: 39.94 kB / 378 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.939e-05/0.1537, allocations: 79.69 kB / 378.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.1539, allocations: 167.3 kB / 378.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004985/0.1544, allocations: 438.5 kB / 378.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1544, allocations: 0 / 378.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1544, allocations: 4 kB / 378.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.1545, allocations: 0 / 378.7 MB, free: 11.92 MB / 318.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.001331/0.1558, allocations: 0.609 MB / 379.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1559, allocations: 12.03 kB / 379.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.313e-05/0.156, allocations: 32.56 kB / 379.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005186/0.1565, allocations: 287.5 kB / 379.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.1565, allocations: 20.94 kB / 379.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.1566, allocations: 24.38 kB / 379.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.1572, allocations: 292.9 kB / 379.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.1572, allocations: 4 kB / 379.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.703e-05/0.1573, allocations: 12 kB / 379.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.1573, allocations: 7.938 kB / 380 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.1577, allocations: 206.2 kB / 380.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.1596, allocations: 1.14 MB / 381.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.1602, allocations: 230.5 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003369/0.1606, allocations: 140.8 kB / 381.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.1606, allocations: 4 kB / 381.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/0.161, allocations: 166.7 kB / 381.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.164e-06/0.161, allocations: 4 kB / 381.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001512/0.1625, allocations: 0.5107 MB / 382.3 MB, free: 8.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.1627, allocations: 140.5 kB / 382.5 MB, free: 7.836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.163, allocations: 241 kB / 382.7 MB, free: 7.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.163, allocations: 29.7 kB / 382.7 MB, free: 7.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1632, allocations: 172.4 kB / 382.9 MB, free: 7.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/0.1633, allocations: 63.02 kB / 383 MB, free: 7.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1634, allocations: 49.61 kB / 383 MB, free: 7.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1636, allocations: 342.8 kB / 383.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.1638, allocations: 75.97 kB / 383.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.164, allocations: 121.1 kB / 383.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.1643, allocations: 171.3 kB / 383.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1643, allocations: 0 / 383.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005424/0.1649, allocations: 294 kB / 384 MB, free: 6.234 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1649, allocations: 4 kB / 384 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1649, allocations: 0 / 384 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004137/0.1653, allocations: 88.81 kB / 384.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1655, allocations: 32.02 kB / 384.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.1682, allocations: 2.142 MB / 386.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.1685, allocations: 27.83 kB / 386.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.1685, allocations: 4 kB / 386.3 MB, free: 3.797 MB / 318.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.0002168/0.1687, allocations: 161.8 kB / 386.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.127e-05/0.1688, allocations: 31.66 kB / 386.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.125e-05/0.1688, allocations: 26.19 kB / 386.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1688, allocations: 4 kB / 386.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1689, allocations: 0 / 386.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1689, allocations: 3.984 kB / 386.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.17, allocations: 0.7734 MB / 387.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.17, allocations: 0 / 387.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.1701, allocations: 27.98 kB / 387.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000265/0.1704, allocations: 92.84 kB / 387.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.1704, allocations: 0 / 387.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002626/0.1731, allocations: 2.147 MB / 389.6 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1731, allocations: 0 / 389.6 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008226/0.1739, allocations: 457.5 kB / 390 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.1741, allocations: 124.7 kB / 390.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.1742, allocations: 8 kB / 390.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1744, allocations: 16.11 kB / 390.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.1745, allocations: 35.95 kB / 390.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.1745, allocations: 4 kB / 390.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.1748, allocations: 176.5 kB / 390.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.92e-07/0.1748, allocations: 0 / 390.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.1753, allocations: 91.95 kB / 390.5 MB, free: 15.38 MB / 334.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.0002383/0.1756, allocations: 119.1 kB / 390.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000852/0.1764, allocations: 358.6 kB / 390.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.1765, allocations: 0 / 390.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000534/0.177, allocations: 266.7 kB / 391.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.1775, allocations: 52.44 kB / 391.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.1789, allocations: 0.5945 MB / 391.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.1794, allocations: 0.7597 MB / 392.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.1795, allocations: 18.3 kB / 392.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.124e-05/0.1796, allocations: 15.44 kB / 392.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1796, allocations: 4 kB / 392.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Templates: time 0.01275/0.1923, allocations: 4.925 MB / 397.5 MB, free: 8.191 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)