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.001234/0.001234, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001156/0.001156, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.744/1.744, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.0007994/0.0007998, allocations: 15.44 kB / 280.1 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1393, allocations: 47.57 MB / 327.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003259/0.1426, allocations: 2.462 MB / 330.2 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.144, allocations: 0.7257 MB / 330.9 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1441, allocations: 4 kB / 330.9 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.1443, allocations: 35.69 kB / 330.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.1445, allocations: 87.31 kB / 331 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002932/0.1448, allocations: 63.91 kB / 331.1 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.1452, allocations: 374.3 kB / 331.5 MB, free: 328 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.1454, allocations: 97.83 kB / 331.6 MB, free: 232 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.1457, allocations: 127.5 kB / 331.7 MB, free: 104 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1459, allocations: 131.4 kB / 331.8 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.1459, allocations: 16 kB / 331.8 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.333e-05/0.146, allocations: 16 kB / 331.8 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.683e-05/0.146, allocations: 55.75 kB / 331.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.825e-05/0.1461, allocations: 81.52 kB / 332 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.1465, allocations: 323.3 kB / 332.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1465, allocations: 4 kB / 332.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1465, allocations: 0 / 332.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1465, allocations: 0 / 332.3 MB, free: 15.48 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.001049/0.1475, allocations: 0.5699 MB / 332.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1476, allocations: 8.031 kB / 332.9 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.706e-05/0.1477, allocations: 35.56 kB / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.1481, allocations: 278.4 kB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.1481, allocations: 24.52 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.1482, allocations: 24 kB / 333.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.1488, allocations: 292.5 kB / 333.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1488, allocations: 0 / 333.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.1488, allocations: 8 kB / 333.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.1488, allocations: 8 kB / 333.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004367/0.1493, allocations: 206.1 kB / 333.7 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.1511, allocations: 1.168 MB / 334.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.1517, allocations: 219.2 kB / 335.1 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003163/0.152, allocations: 153.1 kB / 335.3 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.152, allocations: 8.125 kB / 335.3 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003695/0.1524, allocations: 160.7 kB / 335.4 MB, free: 12.13 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 3.346e-06/0.1524, allocations: 4 kB / 335.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001382/0.1538, allocations: 0.5189 MB / 335.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.926e-05/0.1539, allocations: 132.5 kB / 336.1 MB, free: 11.42 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.1542, allocations: 245 kB / 336.3 MB, free: 11.17 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.1543, allocations: 29.7 kB / 336.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.1544, allocations: 164.5 kB / 336.5 MB, free: 10.97 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.03e-05/0.1545, allocations: 78.92 kB / 336.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.276e-05/0.1545, allocations: 4 kB / 336.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1547, allocations: 334.8 kB / 336.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.1548, allocations: 71.97 kB / 337 MB, free: 10.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.1551, allocations: 133 kB / 337.1 MB, free: 10.33 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.1553, allocations: 72 kB / 337.2 MB, free: 10.26 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1553, allocations: 0 / 337.2 MB, free: 10.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005565/0.1558, allocations: 298.1 kB / 337.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.1559, allocations: 7.953 kB / 337.5 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1559, allocations: 0 / 337.5 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003822/0.1563, allocations: 92.8 kB / 337.6 MB, free: 9.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.1564, allocations: 31.92 kB / 337.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.1587, allocations: 1.936 MB / 339.5 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.1589, allocations: 35.84 kB / 339.6 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1589, allocations: 11.98 kB / 339.6 MB, free: 7.711 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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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 (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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001737/0.1591, allocations: 161.8 kB / 339.7 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.1591, allocations: 23.72 kB / 339.8 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.901e-05/0.1592, allocations: 30.17 kB / 339.8 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1592, allocations: 4 kB / 339.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.1592, allocations: 0 / 339.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1592, allocations: 0 / 339.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.1603, allocations: 0.7809 MB / 340.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1603, allocations: 0 / 340.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.1604, allocations: 19.98 kB / 340.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.1606, allocations: 84.81 kB / 340.7 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.1607, allocations: 7.938 kB / 340.7 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002265/0.1629, allocations: 1.944 MB / 342.6 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.163, allocations: 0 / 342.6 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00073/0.1637, allocations: 452.7 kB / 343.1 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.1638, allocations: 121 kB / 343.2 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.1639, allocations: 15.94 kB / 343.2 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.1641, allocations: 19.98 kB / 343.2 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.1642, allocations: 31.95 kB / 343.3 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.1642, allocations: 11.98 kB / 343.3 MB, free: 3.773 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.1644, allocations: 168.5 kB / 343.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1645, allocations: 4 kB / 343.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004849/0.1649, allocations: 99.77 kB / 343.5 MB, free: 3.508 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 (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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002052/0.1652, allocations: 119.2 kB / 343.7 MB, free: 3.379 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007344/0.1659, allocations: 350.5 kB / 344 MB, free: 3.023 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1659, allocations: 0 / 344 MB, free: 3.023 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004201/0.1663, allocations: 262.4 kB / 344.3 MB, free: 2.754 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.1668, allocations: 60.7 kB / 344.3 MB, free: 2.695 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.1682, allocations: 0.7208 MB / 345 MB, free: 1.949 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.1687, allocations: 0.7674 MB / 345.8 MB, free: 1.156 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.1689, allocations: 26.27 kB / 345.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.1689, allocations: 19.44 kB / 345.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1689, allocations: 0 / 345.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of Templates: time 0.01039/0.1793, allocations: 4.261 MB / 350.1 MB, free: 12.86 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)