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.008995/0.008995, allocations: 97.69 kB / 15.73 MB, free: 6.02 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.001569/0.001569, allocations: 189.9 kB / 16.67 MB, free: 5.938 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.754/1.754, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001488/0.001488, allocations: 58.22 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1663, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006657/0.1731, allocations: 3.887 MB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.1759, allocations: 1.033 MB / 378.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003056/0.1762, allocations: 11.94 kB / 378.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003412/0.1766, allocations: 75.2 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003574/0.177, allocations: 166.5 kB / 378.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.1776, allocations: 211.6 kB / 378.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008598/0.1785, allocations: 0.7588 MB / 379.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003837/0.1789, allocations: 172.9 kB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004481/0.1793, allocations: 303 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004946/0.1798, allocations: 334.7 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.18, allocations: 80 kB / 380.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.1801, allocations: 76 kB / 380.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.1803, allocations: 151.5 kB / 380.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003281/0.1806, allocations: 314.5 kB / 380.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009553/0.1816, allocations: 0.794 MB / 381.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.1816, allocations: 3.938 kB / 381.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1816, allocations: 0 / 381.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.1816, allocations: 4 kB / 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.002767/0.1844, allocations: 0.9988 MB / 382.5 MB, free: 7.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.482e-05/0.1845, allocations: 11.97 kB / 382.5 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.1847, allocations: 60.56 kB / 382.6 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008777/0.1855, allocations: 410.3 kB / 383 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.144e-05/0.1856, allocations: 25.38 kB / 383 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.401e-05/0.1857, allocations: 36.12 kB / 383 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.1872, allocations: 0.5669 MB / 383.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.1872, allocations: 0 / 383.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.1873, allocations: 16 kB / 383.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1873, allocations: 8 kB / 383.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.1891, allocations: 0.5699 MB / 384.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004088/0.1932, allocations: 2.004 MB / 386.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003637/0.1969, allocations: 0.7954 MB / 387 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000934/0.1978, allocations: 360.7 kB / 387.4 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.1979, allocations: 4 kB / 387.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.1991, allocations: 411.6 kB / 387.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 5.501e-06/0.1991, allocations: 0 / 387.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009082/0.2082, allocations: 1.791 MB / 389.6 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.418e-05/0.2083, allocations: 89.09 kB / 389.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006392/0.209, allocations: 377.7 kB / 390 MB, free: 132 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/0.209, allocations: 37.7 kB / 390 MB, free: 88 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.2093, allocations: 232.8 kB / 390.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.2095, allocations: 126.9 kB / 390.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.2097, allocations: 78.05 kB / 390.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.21, allocations: 350.8 kB / 390.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008655/0.2108, allocations: 268.6 kB / 391.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008642/0.2117, allocations: 309.9 kB / 391.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.2133, allocations: 0.5407 MB / 391.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2133, allocations: 4 kB / 391.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004566/0.2179, allocations: 1.056 MB / 393 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.784e-05/0.218, allocations: 38.8 kB / 393 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.218, allocations: 0 / 393 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.2194, allocations: 404.4 kB / 393.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.2199, allocations: 75.88 kB / 393.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008986/0.2289, allocations: 3.669 MB / 397.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009185/0.2299, allocations: 91.66 kB / 397.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.23, allocations: 15.98 kB / 397.3 MB, free: 8.652 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.0004839/0.2305, allocations: 173.7 kB / 397.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.2307, allocations: 51.75 kB / 397.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001859/0.2309, allocations: 56.34 kB / 397.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.2309, allocations: 4 kB / 397.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.2309, allocations: 4 kB / 397.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.2309, allocations: 0 / 397.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009007/0.2319, allocations: 0.5835 MB / 398.1 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.2319, allocations: 3.938 kB / 398.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004578/0.2323, allocations: 79.86 kB / 398.2 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.2335, allocations: 392.5 kB / 398.6 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.2336, allocations: 11.98 kB / 398.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008231/0.2418, allocations: 3.67 MB / 402.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2419, allocations: 0 / 402.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004507/0.2464, allocations: 1.263 MB / 403.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003782/0.2468, allocations: 172.8 kB / 403.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.2469, allocations: 19.92 kB / 403.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005593/0.2475, allocations: 55.94 kB / 403.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.2477, allocations: 51.92 kB / 403.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.2478, allocations: 8 kB / 403.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004238/0.2482, allocations: 283.1 kB / 404.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2482, allocations: 0 / 404.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008678/0.2491, allocations: 171.8 kB / 404.3 MB, free: 1.383 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.0002634/0.2494, allocations: 107.3 kB / 404.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.2523, allocations: 0.8915 MB / 405.3 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2523, allocations: 0 / 405.3 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.2539, allocations: 0.5334 MB / 405.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/0.2546, allocations: 81.45 kB / 405.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.2586, allocations: 1.166 MB / 407.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007378/0.2594, allocations: 0.8239 MB / 407.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002924/0.2597, allocations: 43.27 kB / 407.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.2599, allocations: 35.42 kB / 408 MB, free: 13.6 MB / 350.1 MB Notification: Performance of SimCode: time 1.673e-06/0.2599, allocations: 0 / 408 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Templates: time 0.02854/0.2884, allocations: 13.26 MB / 421.2 MB, free: 320 kB / 350.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)