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.00507/0.00507, allocations: 102.7 kB / 15.73 MB, free: 6.492 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.00114/0.00114, allocations: 191.7 kB / 16.67 MB, free: 6.379 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.565/1.565, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.001471/0.001472, allocations: 55.02 kB / 326.5 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1236, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00535/0.129, allocations: 3.887 MB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1311, allocations: 1.037 MB / 378.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.1313, allocations: 8 kB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.1316, allocations: 79.2 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003212/0.1319, allocations: 174.5 kB / 378.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004803/0.1324, allocations: 203.7 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007824/0.1332, allocations: 0.7627 MB / 379.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.1335, allocations: 172.9 kB / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003702/0.1339, allocations: 291 kB / 379.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004213/0.1343, allocations: 338.7 kB / 380.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.1345, allocations: 76 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.1346, allocations: 76 kB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.1347, allocations: 155.4 kB / 380.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002979/0.135, allocations: 318.6 kB / 380.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000781/0.1358, allocations: 0.8021 MB / 381.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1358, allocations: 0 / 381.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1358, allocations: 4 kB / 381.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.908e-06/0.1358, allocations: 0 / 381.5 MB, free: 8.934 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.002496/0.1383, allocations: 0.9797 MB / 382.5 MB, free: 7.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.1384, allocations: 8.031 kB / 382.5 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1385, allocations: 56.28 kB / 382.6 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006635/0.1392, allocations: 402 kB / 382.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.1392, allocations: 25.38 kB / 383 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.147e-05/0.1393, allocations: 44.11 kB / 383 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.1406, allocations: 0.5669 MB / 383.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1407, allocations: 0 / 383.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.1407, allocations: 12 kB / 383.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.1407, allocations: 8 kB / 383.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.1425, allocations: 0.5738 MB / 384.2 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003521/0.146, allocations: 2 MB / 386.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003672/0.1497, allocations: 0.7955 MB / 387 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009434/0.1506, allocations: 360.7 kB / 387.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.1507, allocations: 4 kB / 387.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.1518, allocations: 407.5 kB / 387.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.954e-06/0.1518, allocations: 0 / 387.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.00949/0.1613, allocations: 1.787 MB / 389.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.1614, allocations: 85.11 kB / 389.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005156/0.1619, allocations: 385.6 kB / 390 MB, free: 184 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.1619, allocations: 37.7 kB / 390 MB, free: 140 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1621, allocations: 224.7 kB / 390.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.1623, allocations: 130 kB / 390.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1624, allocations: 70.06 kB / 390.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.1626, allocations: 358.8 kB / 390.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008429/0.1635, allocations: 268.6 kB / 391 MB, free: 15.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008583/0.1644, allocations: 309.9 kB / 391.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.166, allocations: 0.5407 MB / 391.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.166, allocations: 4 kB / 391.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004629/0.1707, allocations: 1.048 MB / 392.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.237e-05/0.1707, allocations: 33.69 kB / 393 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1707, allocations: 0 / 393 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.172, allocations: 400.4 kB / 393.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.1724, allocations: 87.86 kB / 393.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008449/0.1809, allocations: 3.676 MB / 397.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007299/0.1816, allocations: 87.66 kB / 397.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.1817, allocations: 19.98 kB / 397.2 MB, free: 8.703 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.0003311/0.182, allocations: 165.8 kB / 397.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1821, allocations: 47.47 kB / 397.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.1823, allocations: 52.38 kB / 397.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1823, allocations: 4 kB / 397.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1823, allocations: 4 kB / 397.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.1823, allocations: 3.984 kB / 397.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007937/0.1831, allocations: 0.591 MB / 398.1 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.1831, allocations: 3.938 kB / 398.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004348/0.1836, allocations: 75.88 kB / 398.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.1847, allocations: 392.9 kB / 398.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.1848, allocations: 8 kB / 398.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008313/0.1931, allocations: 3.665 MB / 402.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1931, allocations: 0 / 402.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004391/0.1975, allocations: 1.259 MB / 403.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.1978, allocations: 172.6 kB / 403.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.808e-05/0.1979, allocations: 11.94 kB / 403.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005098/0.1984, allocations: 67.86 kB / 403.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.1986, allocations: 47.94 kB / 403.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.675e-05/0.1986, allocations: 11.98 kB / 403.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003048/0.1989, allocations: 279.2 kB / 404.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1989, allocations: 0 / 404.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006316/0.1996, allocations: 163.8 kB / 404.2 MB, free: 1.461 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.000196/0.1998, allocations: 115.2 kB / 404.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00279/0.2026, allocations: 0.876 MB / 405.2 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.2026, allocations: 0 / 405.2 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.2042, allocations: 0.5334 MB / 405.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005198/0.2047, allocations: 77.47 kB / 405.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.2083, allocations: 1.172 MB / 407 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005174/0.2088, allocations: 0.8278 MB / 407.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002147/0.209, allocations: 43.27 kB / 407.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2091, allocations: 27.44 kB / 407.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2091, allocations: 0 / 407.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of Templates: time 0.02348/0.2326, allocations: 13.69 MB / 421.6 MB, free: 15.98 MB / 366.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)