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.007557/0.007557, allocations: 102.4 kB / 15.73 MB, free: 6.441 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.001299/0.001299, allocations: 198.3 kB / 16.67 MB, free: 6.355 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.885/1.885, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.001857/0.001857, allocations: 58.81 kB / 326.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1614, allocations: 46.62 MB / 373.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.007351/0.1689, allocations: 2.878 MB / 376 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.1713, allocations: 0.768 MB / 376.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002804/0.1716, allocations: 8 kB / 376.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002801/0.172, allocations: 55.44 kB / 376.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003198/0.1723, allocations: 99.12 kB / 377 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.1728, allocations: 103.8 kB / 377.1 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006185/0.1735, allocations: 414.1 kB / 377.5 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.1738, allocations: 135.2 kB / 377.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/0.1741, allocations: 155.4 kB / 377.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.1744, allocations: 163.2 kB / 377.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.285e-05/0.1744, allocations: 36 kB / 378 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.53e-05/0.1745, allocations: 36 kB / 378 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.1746, allocations: 79.75 kB / 378.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002221/0.1749, allocations: 171.3 kB / 378.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006231/0.1755, allocations: 434.5 kB / 378.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.1755, allocations: 4 kB / 378.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1755, allocations: 0 / 378.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.856e-05/0.1756, allocations: 0 / 378.7 MB, free: 11.89 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.001442/0.177, allocations: 0.6168 MB / 379.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.1771, allocations: 8.031 kB / 379.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.1772, allocations: 36.56 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006379/0.1778, allocations: 287.6 kB / 379.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.1779, allocations: 16.94 kB / 379.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-05/0.178, allocations: 24.38 kB / 379.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.1786, allocations: 292.8 kB / 379.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.1787, allocations: 0 / 379.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.1787, allocations: 12 kB / 379.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.1787, allocations: 8 kB / 380 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/0.1792, allocations: 206.1 kB / 380.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.1814, allocations: 1.144 MB / 381.3 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005812/0.1819, allocations: 218.6 kB / 381.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.1823, allocations: 140.8 kB / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.1824, allocations: 0 / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/0.1827, allocations: 174.6 kB / 381.8 MB, free: 8.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.1827, allocations: 0 / 381.8 MB, free: 8.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001712/0.1844, allocations: 0.5224 MB / 382.3 MB, free: 7.969 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001851/0.1846, allocations: 132.5 kB / 382.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.185, allocations: 241 kB / 382.7 MB, free: 7.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.1851, allocations: 29.7 kB / 382.7 MB, free: 7.527 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1852, allocations: 168.4 kB / 382.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.164e-05/0.1853, allocations: 71 kB / 383 MB, free: 7.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.874e-05/0.1854, allocations: 53.55 kB / 383 MB, free: 7.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1856, allocations: 338.8 kB / 383.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.1858, allocations: 75.97 kB / 383.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.186, allocations: 121.1 kB / 383.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003007/0.1863, allocations: 175.3 kB / 383.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1863, allocations: 0 / 383.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005284/0.1868, allocations: 298 kB / 384 MB, free: 6.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1868, allocations: 4 kB / 384 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.1869, allocations: 0 / 384 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004077/0.1873, allocations: 92.89 kB / 384.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.1874, allocations: 31.98 kB / 384.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.19, allocations: 2.134 MB / 386.3 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.1903, allocations: 27.86 kB / 386.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.1904, allocations: 20.05 kB / 386.3 MB, free: 3.746 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.0002706/0.1906, allocations: 145.8 kB / 386.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.1907, allocations: 27.66 kB / 386.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.5e-05/0.1908, allocations: 30.17 kB / 386.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1908, allocations: 4 kB / 386.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1908, allocations: 0 / 386.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1908, allocations: 0 / 386.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.192, allocations: 0.7734 MB / 387.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.1921, allocations: 4 kB / 387.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.1922, allocations: 19.92 kB / 387.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002899/0.1925, allocations: 88.86 kB / 387.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.1925, allocations: 4 kB / 387.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002705/0.1952, allocations: 2.15 MB / 389.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.1953, allocations: 4.109 kB / 389.6 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008291/0.1961, allocations: 449.5 kB / 390 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.1963, allocations: 124.8 kB / 390.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/0.1964, allocations: 12 kB / 390.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.1966, allocations: 15.98 kB / 390.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.1968, allocations: 39.89 kB / 390.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.1968, allocations: 8.078 kB / 390.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002041/0.1971, allocations: 180.4 kB / 390.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1971, allocations: 0 / 390.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005832/0.1977, allocations: 91.84 kB / 390.5 MB, free: 15.34 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.0002151/0.1979, allocations: 111.2 kB / 390.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009226/0.1988, allocations: 354.7 kB / 390.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1988, allocations: 0 / 390.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.1993, allocations: 274.7 kB / 391.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.1999, allocations: 56.31 kB / 391.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.2021, allocations: 0.5827 MB / 391.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007584/0.2029, allocations: 0.7635 MB / 392.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.203, allocations: 26.27 kB / 392.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.29e-05/0.2031, allocations: 23.44 kB / 392.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of SimCode: time 2.525e-06/0.2032, allocations: 0 / 392.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of Templates: time 0.01347/0.2166, allocations: 4.909 MB / 397.5 MB, free: 8.16 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)