Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.007886/0.007886, allocations: 104.9 kB / 15.73 MB, free: 6.043 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.001379/0.001379, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.629/1.629, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001209/0.001209, allocations: 55.11 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1321, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005628/0.1378, allocations: 3.891 MB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.1404, allocations: 1.033 MB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003285/0.1408, allocations: 7.938 kB / 378.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.1411, allocations: 83.2 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.1415, allocations: 166.5 kB / 378.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.1421, allocations: 203.6 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008838/0.143, allocations: 0.7627 MB / 379.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003904/0.1434, allocations: 172.9 kB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004373/0.1438, allocations: 291 kB / 379.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004032/0.1442, allocations: 338.7 kB / 380.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1443, allocations: 76 kB / 380.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.1445, allocations: 76 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.1447, allocations: 155.5 kB / 380.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000321/0.145, allocations: 310.6 kB / 380.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009011/0.1459, allocations: 0.8022 MB / 381.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1459, allocations: 3.938 kB / 381.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1459, allocations: 0 / 381.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.146, allocations: 3.984 kB / 381.5 MB, free: 8.93 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002759/0.1487, allocations: 0.9836 MB / 382.5 MB, free: 7.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.1488, allocations: 8.031 kB / 382.5 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.1489, allocations: 56.28 kB / 382.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006834/0.1496, allocations: 402 kB / 382.9 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.1497, allocations: 29.38 kB / 383 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.704e-05/0.1498, allocations: 40.12 kB / 383 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.1511, allocations: 0.5591 MB / 383.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.1512, allocations: 3.938 kB / 383.6 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.163e-05/0.1512, allocations: 16 kB / 383.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1513, allocations: 12 kB / 383.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.153, allocations: 0.5777 MB / 384.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003916/0.1569, allocations: 2 MB / 386.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003872/0.1608, allocations: 0.7838 MB / 387 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.1619, allocations: 368.7 kB / 387.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.373e-05/0.1619, allocations: 11.97 kB / 387.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.1631, allocations: 403.6 kB / 387.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.705e-06/0.1631, allocations: 0 / 387.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009463/0.1726, allocations: 1.787 MB / 389.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.1727, allocations: 85.11 kB / 389.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005005/0.1732, allocations: 385.6 kB / 390 MB, free: 168 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.1733, allocations: 33.7 kB / 390 MB, free: 128 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.1735, allocations: 228.6 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.1736, allocations: 130 kB / 390.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.1738, allocations: 70.06 kB / 390.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1739, allocations: 358.8 kB / 390.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008493/0.1748, allocations: 264.6 kB / 391 MB, free: 15.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008868/0.1757, allocations: 313.8 kB / 391.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.1773, allocations: 0.5368 MB / 391.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.1774, allocations: 4 kB / 391.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004768/0.1821, allocations: 1.052 MB / 392.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.1822, allocations: 33.7 kB / 393 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.1823, allocations: 0 / 393 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.1836, allocations: 400.5 kB / 393.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.1841, allocations: 79.86 kB / 393.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00838/0.1925, allocations: 3.677 MB / 397.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007362/0.1932, allocations: 83.66 kB / 397.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/0.1933, allocations: 12 kB / 397.2 MB, free: 8.707 MB / 334.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * 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 (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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002836/0.1936, allocations: 169.8 kB / 397.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-05/0.1937, allocations: 47.45 kB / 397.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.1938, allocations: 52.38 kB / 397.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1938, allocations: 4 kB / 397.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1938, allocations: 8 kB / 397.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1938, allocations: 96 / 397.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006673/0.1945, allocations: 0.6027 MB / 398.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1945, allocations: 3.938 kB / 398.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004415/0.195, allocations: 75.86 kB / 398.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.1961, allocations: 388.5 kB / 398.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.1962, allocations: 11.98 kB / 398.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008253/0.2044, allocations: 3.654 MB / 402.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2045, allocations: 0 / 402.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.2093, allocations: 1.267 MB / 403.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.2098, allocations: 176.6 kB / 403.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.2099, allocations: 7.938 kB / 403.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005858/0.2105, allocations: 59.92 kB / 403.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.2108, allocations: 51.94 kB / 403.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.2108, allocations: 12 kB / 403.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004716/0.2113, allocations: 275.1 kB / 404 MB, free: 1.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2113, allocations: 4 kB / 404.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008304/0.2121, allocations: 167.8 kB / 404.2 MB, free: 1.453 MB / 334.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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000256/0.2124, allocations: 111.1 kB / 404.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.2153, allocations: 0.8799 MB / 405.2 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2153, allocations: 0 / 405.2 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001625/0.2169, allocations: 0.5334 MB / 405.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006541/0.2176, allocations: 89.61 kB / 405.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003686/0.2213, allocations: 1.156 MB / 407 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/0.2219, allocations: 0.8239 MB / 407.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000253/0.2222, allocations: 47.25 kB / 407.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.2223, allocations: 31.44 kB / 407.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.395e-06/0.2223, allocations: 0 / 407.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Templates: time 0.02559/0.2479, allocations: 13.25 MB / 421.1 MB, free: 416 kB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)