Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008394/0.008394, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001547/0.001547, allocations: 202 kB / 16.68 MB, free: 5.973 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.892/1.892, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.002493/0.002493, allocations: 51.83 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1616, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005845/0.1676, allocations: 2.871 MB / 376 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.17, allocations: 0.7718 MB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002975/0.1704, allocations: 8 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.1707, allocations: 51.5 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.171, allocations: 95.12 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004668/0.1714, allocations: 99.83 kB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005555/0.172, allocations: 418.1 kB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.1724, allocations: 131.2 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/0.1727, allocations: 159.4 kB / 377.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.173, allocations: 163.2 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.402e-05/0.1731, allocations: 36 kB / 378 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.324e-05/0.1732, allocations: 40 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.1733, allocations: 79.75 kB / 378.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.1735, allocations: 175.2 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006014/0.1741, allocations: 426.6 kB / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.968e-06/0.1741, allocations: 0 / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.1742, allocations: 0 / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.1742, allocations: 4 kB / 378.7 MB, free: 11.8 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.001477/0.1757, allocations: 0.6129 MB / 379.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.787e-05/0.1758, allocations: 8.031 kB / 379.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.1759, allocations: 36.56 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006809/0.1766, allocations: 299.5 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.1766, allocations: 16.94 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.1767, allocations: 24.38 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.1773, allocations: 284.9 kB / 379.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1773, allocations: 0 / 379.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.003e-05/0.1774, allocations: 12 kB / 379.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.1774, allocations: 8 kB / 379.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.1778, allocations: 210.1 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.18, allocations: 1.14 MB / 381.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006633/0.1807, allocations: 222.6 kB / 381.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.181, allocations: 140.8 kB / 381.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.1811, allocations: 3.938 kB / 381.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003777/0.1815, allocations: 166.7 kB / 381.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.124e-06/0.1815, allocations: 4 kB / 381.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.00169/0.1832, allocations: 0.5184 MB / 382.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.1833, allocations: 132.5 kB / 382.5 MB, free: 7.715 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.1837, allocations: 245 kB / 382.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.1837, allocations: 29.7 kB / 382.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.1839, allocations: 168.4 kB / 382.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.354e-05/0.184, allocations: 71 kB / 383 MB, free: 7.191 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1841, allocations: 53.61 kB / 383 MB, free: 7.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.1844, allocations: 330.8 kB / 383.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.1846, allocations: 71.97 kB / 383.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.1848, allocations: 133 kB / 383.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.1851, allocations: 163.4 kB / 383.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.1851, allocations: 0 / 383.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000571/0.1857, allocations: 302 kB / 384 MB, free: 6.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.1858, allocations: 7.938 kB / 384 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.1858, allocations: 4 kB / 384 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004507/0.1862, allocations: 84.8 kB / 384.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.1864, allocations: 35.92 kB / 384.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/0.1895, allocations: 2.135 MB / 386.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.1897, allocations: 27.86 kB / 386.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.1898, allocations: 15.98 kB / 386.3 MB, free: 3.656 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.000242/0.19, allocations: 149.8 kB / 386.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.395e-05/0.1901, allocations: 31.72 kB / 386.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.1902, allocations: 30.17 kB / 386.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.1902, allocations: 7.984 kB / 386.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.1902, allocations: 4 kB / 386.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1902, allocations: 0 / 386.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.1913, allocations: 0.7773 MB / 387.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.1914, allocations: 0 / 387.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1915, allocations: 24.02 kB / 387.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002827/0.1918, allocations: 85.08 kB / 387.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.1918, allocations: 11.98 kB / 387.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002456/0.1943, allocations: 2.138 MB / 389.6 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1943, allocations: 0 / 389.6 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008086/0.1951, allocations: 453.6 kB / 390 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.1953, allocations: 128.7 kB / 390.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.647e-05/0.1953, allocations: 4 kB / 390.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1955, allocations: 20.05 kB / 390.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.1957, allocations: 35.95 kB / 390.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1957, allocations: 7.984 kB / 390.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.196, allocations: 176.5 kB / 390.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.196, allocations: 0 / 390.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005484/0.1965, allocations: 87.84 kB / 390.5 MB, free: 15.25 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.0002257/0.1968, allocations: 103.2 kB / 390.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009014/0.1977, allocations: 366.6 kB / 390.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.1977, allocations: 96 / 390.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.1981, allocations: 274.4 kB / 391.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.1987, allocations: 60.7 kB / 391.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.2002, allocations: 0.5904 MB / 391.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004474/0.2007, allocations: 0.7558 MB / 392.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.2008, allocations: 26.28 kB / 392.6 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.2009, allocations: 19.44 kB / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.2009, allocations: 0 / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Templates: time 0.01231/0.2132, allocations: 4.917 MB / 397.5 MB, free: 8.059 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)