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.008487/0.008487, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001619/0.00162, allocations: 201.9 kB / 16.68 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.783/1.783, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001336/0.001336, allocations: 63 kB / 326.6 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1484, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005209/0.1537, allocations: 2.878 MB / 376 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.1556, allocations: 0.768 MB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.1558, allocations: 4 kB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.156, allocations: 47.5 kB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002142/0.1562, allocations: 103 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.1566, allocations: 103.8 kB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.1571, allocations: 406.2 kB / 377.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003349/0.1575, allocations: 139.2 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.1577, allocations: 159.4 kB / 377.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.158, allocations: 163.3 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.198e-05/0.158, allocations: 36 kB / 378 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.445e-05/0.1581, allocations: 36 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.877e-05/0.1582, allocations: 75.7 kB / 378.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.1584, allocations: 175.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.1589, allocations: 442.3 kB / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.159, allocations: 0 / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.159, allocations: 0 / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.159, allocations: 3.938 kB / 378.7 MB, free: 11.79 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.0012/0.1602, allocations: 0.6204 MB / 379.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1603, allocations: 12.03 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.634e-05/0.1604, allocations: 40.64 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.1608, allocations: 279.8 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.1608, allocations: 20.94 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.195e-05/0.1609, allocations: 24.38 kB / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00053/0.1614, allocations: 300.8 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1615, allocations: 0 / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.1615, allocations: 12 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1615, allocations: 4 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004045/0.1619, allocations: 198.2 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.1637, allocations: 1.145 MB / 381.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005523/0.1643, allocations: 226.5 kB / 381.5 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003149/0.1646, allocations: 140.8 kB / 381.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.1646, allocations: 4 kB / 381.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002901/0.1649, allocations: 166.7 kB / 381.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.165, allocations: 0 / 381.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001525/0.1665, allocations: 0.5187 MB / 382.3 MB, free: 7.863 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.1666, allocations: 132.5 kB / 382.5 MB, free: 7.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.1669, allocations: 252.9 kB / 382.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.167, allocations: 33.7 kB / 382.8 MB, free: 7.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1671, allocations: 164.7 kB / 382.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.1672, allocations: 75.41 kB / 383 MB, free: 7.168 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-05/0.1673, allocations: 49.66 kB / 383 MB, free: 7.113 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1675, allocations: 338.8 kB / 383.4 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.1676, allocations: 75.97 kB / 383.4 MB, free: 6.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.1678, allocations: 117.1 kB / 383.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.1681, allocations: 175.3 kB / 383.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1682, allocations: 0 / 383.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004916/0.1687, allocations: 286.2 kB / 384 MB, free: 6.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.1687, allocations: 8 kB / 384 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.1687, allocations: 0 / 384 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004095/0.1691, allocations: 100.8 kB / 384.1 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.1693, allocations: 23.98 kB / 384.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002582/0.1719, allocations: 2.146 MB / 386.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.1721, allocations: 35.89 kB / 386.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.1722, allocations: 4 kB / 386.3 MB, free: 3.637 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.0001999/0.1724, allocations: 153.7 kB / 386.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.363e-05/0.1724, allocations: 27.8 kB / 386.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.644e-05/0.1725, allocations: 42.09 kB / 386.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1725, allocations: 0 / 386.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1725, allocations: 4 kB / 386.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.1725, allocations: 3.984 kB / 386.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.1736, allocations: 0.7696 MB / 387.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1736, allocations: 0 / 387.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.1737, allocations: 27.92 kB / 387.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002663/0.174, allocations: 97 kB / 387.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.174, allocations: 0 / 387.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.1765, allocations: 2.139 MB / 389.6 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.1765, allocations: 3.984 kB / 389.6 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.1773, allocations: 457.7 kB / 390 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.1775, allocations: 128.9 kB / 390.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.1775, allocations: 4 kB / 390.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.1777, allocations: 15.98 kB / 390.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.1779, allocations: 35.95 kB / 390.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1779, allocations: 4 kB / 390.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.1781, allocations: 176.5 kB / 390.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1781, allocations: 3.938 kB / 390.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005473/0.1787, allocations: 95.84 kB / 390.5 MB, free: 15.21 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.0002143/0.1789, allocations: 103.2 kB / 390.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008865/0.1798, allocations: 366.6 kB / 390.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1798, allocations: 4 kB / 390.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.1802, allocations: 266.6 kB / 391.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004763/0.1807, allocations: 56.42 kB / 391.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.1821, allocations: 0.6018 MB / 391.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.1825, allocations: 0.7635 MB / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.1827, allocations: 22.3 kB / 392.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/0.1827, allocations: 19.44 kB / 392.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1827, allocations: 0 / 392.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Templates: time 0.01154/0.1943, allocations: 4.92 MB / 397.6 MB, free: 8.012 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)