Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.007899/0.007899, allocations: 102 kB / 15.73 MB, free: 6.035 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.001904/0.001904, allocations: 196.2 kB / 16.68 MB, free: 5.953 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.684/1.684, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001365/0.001365, allocations: 54.08 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1518, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005955/0.1578, allocations: 3.883 MB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.1609, allocations: 1.033 MB / 378.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005787/0.1616, allocations: 7.938 kB / 378.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003808/0.162, allocations: 83.2 kB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005225/0.1626, allocations: 166.5 kB / 378.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008495/0.1634, allocations: 211.6 kB / 378.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.1645, allocations: 0.7589 MB / 379.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.1649, allocations: 172.9 kB / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004858/0.1654, allocations: 295 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004736/0.1659, allocations: 338.7 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.1661, allocations: 76 kB / 380.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.1662, allocations: 76 kB / 380.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.1664, allocations: 147.5 kB / 380.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003549/0.1667, allocations: 318.5 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.1677, allocations: 0.8022 MB / 381.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1678, allocations: 3.938 kB / 381.5 MB, free: 8.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1678, allocations: 0 / 381.5 MB, free: 8.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1678, allocations: 0 / 381.5 MB, free: 8.918 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.002749/0.1705, allocations: 0.9797 MB / 382.5 MB, free: 7.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.754e-05/0.1706, allocations: 12.03 kB / 382.5 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.1708, allocations: 56.28 kB / 382.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007229/0.1715, allocations: 405.9 kB / 383 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.1716, allocations: 29.38 kB / 383 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.954e-05/0.1717, allocations: 40.12 kB / 383 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.173, allocations: 0.5591 MB / 383.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.173, allocations: 0 / 383.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.573e-05/0.1731, allocations: 20 kB / 383.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.1731, allocations: 11.98 kB / 383.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.1748, allocations: 0.5738 MB / 384.2 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003736/0.1786, allocations: 2 MB / 386.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003597/0.1822, allocations: 0.7838 MB / 387 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009607/0.1832, allocations: 372.7 kB / 387.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.603e-05/0.1832, allocations: 4 kB / 387.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.1843, allocations: 403.6 kB / 387.7 MB, free: 2.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.564e-06/0.1843, allocations: 0 / 387.7 MB, free: 2.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009442/0.1938, allocations: 1.791 MB / 389.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/0.1939, allocations: 81.11 kB / 389.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006762/0.1946, allocations: 389.6 kB / 390 MB, free: 156 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.038e-05/0.1947, allocations: 37.7 kB / 390 MB, free: 112 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.195, allocations: 220.7 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.1952, allocations: 134 kB / 390.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.1954, allocations: 70.06 kB / 390.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.1956, allocations: 350.8 kB / 390.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009126/0.1965, allocations: 268.6 kB / 391 MB, free: 15.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000936/0.1975, allocations: 313.9 kB / 391.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/0.1992, allocations: 0.5446 MB / 391.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1992, allocations: 0 / 391.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004883/0.2041, allocations: 1.048 MB / 392.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.854e-05/0.2042, allocations: 37.69 kB / 393 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.2042, allocations: 4 kB / 393 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.2056, allocations: 396.5 kB / 393.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.2061, allocations: 87.86 kB / 393.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00919/0.2153, allocations: 3.665 MB / 397.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007825/0.2161, allocations: 83.66 kB / 397.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.992e-05/0.2162, allocations: 12 kB / 397.2 MB, free: 8.699 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.000371/0.2166, allocations: 177.8 kB / 397.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.2167, allocations: 43.47 kB / 397.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/0.2169, allocations: 56.31 kB / 397.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.2169, allocations: 4 kB / 397.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2169, allocations: 0 / 397.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2169, allocations: 3.984 kB / 397.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009559/0.2179, allocations: 0.591 MB / 398.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.2179, allocations: 11.94 kB / 398.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.2184, allocations: 71.88 kB / 398.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/0.2196, allocations: 396.6 kB / 398.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.886e-05/0.2197, allocations: 11.98 kB / 398.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0088/0.2285, allocations: 3.65 MB / 402.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.2285, allocations: 48 / 402.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00472/0.2333, allocations: 1.263 MB / 403.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003533/0.2336, allocations: 176.6 kB / 403.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.2338, allocations: 7.938 kB / 403.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005672/0.2344, allocations: 67.86 kB / 403.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.2346, allocations: 47.94 kB / 403.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.2346, allocations: 15.98 kB / 403.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003898/0.235, allocations: 271.1 kB / 404 MB, free: 1.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.182e-06/0.235, allocations: 4 kB / 404.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007542/0.2358, allocations: 171.8 kB / 404.2 MB, free: 1.441 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.0002525/0.236, allocations: 111.1 kB / 404.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.2389, allocations: 0.8799 MB / 405.2 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.2389, allocations: 0 / 405.2 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.2405, allocations: 0.5295 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.0005694/0.2411, allocations: 85.62 kB / 405.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/0.2445, allocations: 1.16 MB / 407 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007328/0.2452, allocations: 0.8317 MB / 407.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002612/0.2455, allocations: 43.27 kB / 407.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.2457, allocations: 31.44 kB / 407.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.2457, allocations: 0 / 407.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of Templates: time 0.02645/0.2721, allocations: 13.26 MB / 421.1 MB, free: 400 kB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)