Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001318/0.001318, allocations: 107.9 kB / 16.51 MB, free: 6.707 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.001291/0.001291, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.761/1.761, allocations: 205.1 MB / 223.3 MB, free: 12.39 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.001192/0.001192, allocations: 47.92 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1337, allocations: 46.62 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.0062/0.14, allocations: 3.92 MB / 329.9 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.1419, allocations: 1.018 MB / 330.9 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.1422, allocations: 7.938 kB / 330.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002709/0.1425, allocations: 67.45 kB / 331 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003255/0.1428, allocations: 146.8 kB / 331.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.1433, allocations: 179.8 kB / 331.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007782/0.1441, allocations: 0.7082 MB / 332 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000324/0.1444, allocations: 149.5 kB / 332.1 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.1448, allocations: 251 kB / 332.4 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003658/0.1452, allocations: 306.7 kB / 332.7 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.909e-05/0.1453, allocations: 36 kB / 332.7 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.912e-05/0.1454, allocations: 40 kB / 332.8 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.1455, allocations: 107.5 kB / 332.9 MB, free: 13.92 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003148/0.1458, allocations: 278.5 kB / 333.1 MB, free: 13.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007688/0.1466, allocations: 0.7514 MB / 333.9 MB, free: 12.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1466, allocations: 0 / 333.9 MB, free: 12.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.1466, allocations: 4 kB / 333.9 MB, free: 12.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.1467, allocations: 0 / 333.9 MB, free: 12.89 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00264/0.1493, allocations: 0.9836 MB / 334.9 MB, free: 11.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1494, allocations: 8.031 kB / 334.9 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.1495, allocations: 56.28 kB / 334.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.15, allocations: 398 kB / 335.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.1501, allocations: 29.38 kB / 335.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.283e-05/0.1502, allocations: 40.12 kB / 335.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1515, allocations: 0.563 MB / 336 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1515, allocations: 0 / 336 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.1516, allocations: 12 kB / 336 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.1516, allocations: 11.98 kB / 336 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1533, allocations: 0.5738 MB / 336.6 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003659/0.157, allocations: 2.016 MB / 338.6 MB, free: 8 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003988/0.161, allocations: 0.7954 MB / 339.4 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009427/0.162, allocations: 365.3 kB / 339.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.765e-05/0.162, allocations: 4 kB / 339.7 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.1632, allocations: 407.3 kB / 340.1 MB, free: 6.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 5.25e-06/0.1632, allocations: 0 / 340.1 MB, free: 6.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.01008/0.1733, allocations: 1.794 MB / 341.9 MB, free: 4.594 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.1734, allocations: 85.09 kB / 342 MB, free: 4.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005136/0.1739, allocations: 381.7 kB / 342.4 MB, free: 4.105 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.174, allocations: 33.7 kB / 342.4 MB, free: 4.066 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.1742, allocations: 224.6 kB / 342.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.1743, allocations: 126.1 kB / 342.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.1745, allocations: 74.05 kB / 342.8 MB, free: 3.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1747, allocations: 354.8 kB / 343.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008209/0.1755, allocations: 268.6 kB / 343.4 MB, free: 3.016 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000803/0.1763, allocations: 321.8 kB / 343.7 MB, free: 2.691 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.1779, allocations: 0.5446 MB / 344.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1779, allocations: 0 / 344.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004927/0.1828, allocations: 1.06 MB / 345.4 MB, free: 1.059 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.1829, allocations: 29.7 kB / 345.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1829, allocations: 7.984 kB / 345.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.1841, allocations: 396.5 kB / 345.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.1846, allocations: 79.88 kB / 345.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008194/0.1928, allocations: 3.312 MB / 349.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007645/0.1936, allocations: 79.61 kB / 349.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.473e-05/0.1936, allocations: 12 kB / 349.3 MB, free: 13.01 MB / 302.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.0003041/0.1939, allocations: 173.8 kB / 349.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/0.194, allocations: 39.62 kB / 349.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.1941, allocations: 68.28 kB / 349.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1941, allocations: 4 kB / 349.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1942, allocations: 0 / 349.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.1942, allocations: 0 / 349.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007065/0.1949, allocations: 0.5872 MB / 350.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1949, allocations: 4 kB / 350.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.1953, allocations: 79.86 kB / 350.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.1965, allocations: 390.6 kB / 350.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.1966, allocations: 23.92 kB / 350.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00852/0.2051, allocations: 3.295 MB / 353.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2051, allocations: 0 / 353.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005032/0.2102, allocations: 1.255 MB / 355.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004745/0.2107, allocations: 172.5 kB / 355.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.2108, allocations: 15.92 kB / 355.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/0.2115, allocations: 63.94 kB / 355.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/0.2118, allocations: 47.92 kB / 355.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.505e-05/0.2119, allocations: 15.98 kB / 355.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000532/0.2124, allocations: 267.2 kB / 355.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2124, allocations: 0 / 355.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001077/0.2135, allocations: 175.7 kB / 355.9 MB, free: 6.129 MB / 302.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.0003493/0.2139, allocations: 114.7 kB / 356 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.217, allocations: 0.8758 MB / 356.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.217, allocations: 0 / 356.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.2185, allocations: 0.5373 MB / 357.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.2191, allocations: 85.41 kB / 357.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.2226, allocations: 1.316 MB / 358.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005222/0.2231, allocations: 0.8352 MB / 359.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000271/0.2234, allocations: 43.27 kB / 359.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.2235, allocations: 23.44 kB / 359.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of SimCode: time 2.645e-06/0.2235, allocations: 0 / 359.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of Templates: time 0.02053/0.244, allocations: 12.29 MB / 372 MB, free: 5.914 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)