Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008976/0.008976, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001662/0.001662, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.745/1.745, allocations: 205.1 MB / 222.6 MB, free: 4.477 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.001707/0.001707, allocations: 52.98 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1664, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005453/0.1719, allocations: 2.867 MB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.1737, allocations: 0.7757 MB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.174, allocations: 4 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.1743, allocations: 47.52 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002574/0.1746, allocations: 99.11 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.175, allocations: 103.8 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005459/0.1756, allocations: 410.1 kB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/0.1759, allocations: 143.2 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.1762, allocations: 147.4 kB / 377.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002825/0.1764, allocations: 167.2 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.1765, allocations: 36 kB / 377.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.233e-05/0.1766, allocations: 36 kB / 378 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.1767, allocations: 83.73 kB / 378.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.1769, allocations: 171.2 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005589/0.1775, allocations: 438.2 kB / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.1775, allocations: 0 / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1775, allocations: 4 kB / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.1775, allocations: 0 / 378.7 MB, free: 11.77 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001315/0.1789, allocations: 0.6243 MB / 379.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.1789, allocations: 12.03 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.704e-05/0.179, allocations: 40.69 kB / 379.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006317/0.1797, allocations: 283.8 kB / 379.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.848e-05/0.1797, allocations: 20.94 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.819e-05/0.1798, allocations: 28.36 kB / 379.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.1804, allocations: 284.9 kB / 379.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1804, allocations: 4 kB / 379.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.1804, allocations: 12 kB / 380 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1805, allocations: 4 kB / 380 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004476/0.1809, allocations: 210.1 kB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1827, allocations: 1.141 MB / 381.3 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005598/0.1833, allocations: 214.6 kB / 381.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.1837, allocations: 148.7 kB / 381.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.1837, allocations: 4 kB / 381.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003196/0.184, allocations: 170.7 kB / 381.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.284e-06/0.184, allocations: 0 / 381.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001476/0.1855, allocations: 0.5225 MB / 382.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.1856, allocations: 132.5 kB / 382.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.186, allocations: 244.9 kB / 382.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.186, allocations: 33.7 kB / 382.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1862, allocations: 172.7 kB / 382.9 MB, free: 7.211 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.268e-05/0.1862, allocations: 67.44 kB / 383 MB, free: 7.145 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1863, allocations: 49.66 kB / 383 MB, free: 7.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1865, allocations: 334.8 kB / 383.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.1867, allocations: 75.97 kB / 383.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.1869, allocations: 125 kB / 383.6 MB, free: 6.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.1872, allocations: 171.4 kB / 383.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1873, allocations: 3.938 kB / 383.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005279/0.1878, allocations: 294.2 kB / 384 MB, free: 6.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.1878, allocations: 4 kB / 384 MB, free: 6.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1878, allocations: 0 / 384 MB, free: 6.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004283/0.1883, allocations: 84.81 kB / 384.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.1884, allocations: 36 kB / 384.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.1914, allocations: 2.143 MB / 386.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.1917, allocations: 35.83 kB / 386.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.1917, allocations: 11.94 kB / 386.3 MB, free: 3.605 MB / 318.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,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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 (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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.192, allocations: 161.8 kB / 386.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.865e-05/0.192, allocations: 31.8 kB / 386.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.1921, allocations: 26.19 kB / 386.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.1921, allocations: 7.984 kB / 386.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1921, allocations: 0 / 386.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1921, allocations: 0 / 386.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1933, allocations: 0.7735 MB / 387.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1933, allocations: 0 / 387.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.1934, allocations: 16 kB / 387.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002831/0.1937, allocations: 92.84 kB / 387.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.1937, allocations: 4 kB / 387.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/0.1961, allocations: 2.147 MB / 389.6 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1962, allocations: 80 / 389.6 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007679/0.1969, allocations: 453.7 kB / 390 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.1971, allocations: 128.8 kB / 390.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.1971, allocations: 8.125 kB / 390.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.1973, allocations: 19.98 kB / 390.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.1975, allocations: 31.95 kB / 390.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.1975, allocations: 8 kB / 390.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.1977, allocations: 172.5 kB / 390.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1977, allocations: 0 / 390.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000506/0.1982, allocations: 95.95 kB / 390.5 MB, free: 15.19 MB / 334.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 (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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002327/0.1985, allocations: 115.2 kB / 390.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000869/0.1994, allocations: 366.5 kB / 391 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1994, allocations: 0 / 391 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004549/0.1998, allocations: 266.7 kB / 391.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.2003, allocations: 60.38 kB / 391.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.2016, allocations: 0.5978 MB / 391.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.2021, allocations: 0.7636 MB / 392.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.151e-05/0.2022, allocations: 14.3 kB / 392.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.687e-05/0.2022, allocations: 23.42 kB / 392.7 MB, free: 12.92 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2022, allocations: 4 kB / 392.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01067/0.2129, allocations: 4.913 MB / 397.6 MB, free: 7.992 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)