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.001604/0.001604, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.002742/0.002742, allocations: 196.3 kB / 16.14 MB, free: 6.734 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.505/1.505, allocations: 205.1 MB / 222 MB, free: 4.77 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.001155/0.001155, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2703, allocations: 46.63 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004524/0.2748, allocations: 3.934 MB / 328.6 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00205/0.2769, allocations: 1.019 MB / 329.6 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.2771, allocations: 10.34 kB / 329.6 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.2774, allocations: 61.8 kB / 329.7 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000267/0.2777, allocations: 139.6 kB / 329.8 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.278, allocations: 183 kB / 330 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006352/0.2787, allocations: 0.7015 MB / 330.7 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.279, allocations: 149.4 kB / 330.9 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000329/0.2793, allocations: 255.4 kB / 331.1 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003479/0.2797, allocations: 303.2 kB / 331.4 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.453e-05/0.2798, allocations: 41.78 kB / 331.5 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.981e-05/0.2799, allocations: 37.19 kB / 331.5 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.28, allocations: 113.1 kB / 331.6 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.2803, allocations: 273.2 kB / 331.9 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008045/0.2811, allocations: 0.7562 MB / 332.6 MB, free: 11.87 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2812, allocations: 0 / 332.6 MB, free: 11.87 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2812, allocations: 1.156 kB / 332.6 MB, free: 11.87 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.2812, allocations: 0 / 332.6 MB, free: 11.87 MB / 270.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.002624/0.2838, allocations: 0.9806 MB / 333.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.2839, allocations: 13.5 kB / 333.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.284, allocations: 55.84 kB / 333.7 MB, free: 11.06 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005964/0.2846, allocations: 394.6 kB / 334.1 MB, free: 10.65 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.2847, allocations: 29.38 kB / 334.1 MB, free: 10.62 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.919e-05/0.2848, allocations: 40.12 kB / 334.1 MB, free: 10.58 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.2861, allocations: 0.563 MB / 334.7 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2861, allocations: 0 / 334.7 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.171e-05/0.2862, allocations: 16 kB / 334.7 MB, free: 9.984 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.2862, allocations: 8 kB / 334.7 MB, free: 9.977 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.2878, allocations: 0.5738 MB / 335.3 MB, free: 9.402 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003628/0.2914, allocations: 2.02 MB / 337.3 MB, free: 7.293 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003703/0.2951, allocations: 0.7844 MB / 338.1 MB, free: 6.5 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009258/0.2961, allocations: 373.3 kB / 338.5 MB, free: 6.133 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.339e-05/0.2961, allocations: 4 kB / 338.5 MB, free: 6.129 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.2973, allocations: 403.4 kB / 338.9 MB, free: 5.719 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.324e-06/0.2973, allocations: 3.938 kB / 338.9 MB, free: 5.715 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009675/0.307, allocations: 1.786 MB / 340.6 MB, free: 3.898 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.3071, allocations: 85.11 kB / 340.7 MB, free: 3.797 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005071/0.3076, allocations: 389.7 kB / 341.1 MB, free: 3.402 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.79e-05/0.3077, allocations: 33.7 kB / 341.1 MB, free: 3.363 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.3079, allocations: 228.6 kB / 341.4 MB, free: 3.133 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.308, allocations: 126.1 kB / 341.5 MB, free: 3.008 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.3082, allocations: 78 kB / 341.6 MB, free: 2.922 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.3084, allocations: 358.8 kB / 341.9 MB, free: 2.562 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008457/0.3093, allocations: 260.6 kB / 342.2 MB, free: 2.309 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008393/0.3101, allocations: 317.9 kB / 342.5 MB, free: 1.988 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.3119, allocations: 0.5407 MB / 343 MB, free: 1.434 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3119, allocations: 0 / 343 MB, free: 1.434 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004729/0.3166, allocations: 1.056 MB / 344.1 MB, free: 372 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.626e-05/0.3167, allocations: 41.69 kB / 344.1 MB, free: 324 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3167, allocations: 0 / 344.1 MB, free: 324 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.318, allocations: 392.5 kB / 344.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004264/0.3184, allocations: 83.86 kB / 344.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00789/0.3263, allocations: 3.307 MB / 347.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007056/0.327, allocations: 91.56 kB / 348 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/0.3271, allocations: 19.98 kB / 348 MB, free: 12.3 MB / 286.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.0002738/0.3274, allocations: 162.5 kB / 348.2 MB, free: 12.13 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-05/0.3275, allocations: 43.53 kB / 348.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.3276, allocations: 56.31 kB / 348.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3276, allocations: 4 kB / 348.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3276, allocations: 96 / 348.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3276, allocations: 7.969 kB / 348.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006626/0.3283, allocations: 0.5872 MB / 348.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3283, allocations: 3.938 kB / 348.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.3287, allocations: 75.88 kB / 348.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.3298, allocations: 392.5 kB / 349.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.3299, allocations: 11.94 kB / 349.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007663/0.3375, allocations: 3.307 MB / 352.6 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3376, allocations: 0 / 352.6 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/0.342, allocations: 1.251 MB / 353.9 MB, free: 6.191 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003711/0.3424, allocations: 180.5 kB / 354.1 MB, free: 5.996 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.344e-05/0.3425, allocations: 8 kB / 354.1 MB, free: 5.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/0.343, allocations: 63.86 kB / 354.1 MB, free: 5.926 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.3432, allocations: 55.92 kB / 354.2 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.3433, allocations: 12 kB / 354.2 MB, free: 5.859 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003778/0.3436, allocations: 275.2 kB / 354.5 MB, free: 5.594 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.3436, allocations: 0 / 354.5 MB, free: 5.594 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000765/0.3444, allocations: 171.7 kB / 354.6 MB, free: 5.426 MB / 286.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.0002522/0.3447, allocations: 111.2 kB / 354.7 MB, free: 5.305 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.3471, allocations: 0.8759 MB / 355.6 MB, free: 4.402 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3471, allocations: 0 / 355.6 MB, free: 4.402 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.3484, allocations: 0.5345 MB / 356.1 MB, free: 3.855 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.349, allocations: 84.52 kB / 356.2 MB, free: 3.777 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003152/0.3521, allocations: 1.328 MB / 357.6 MB, free: 2.43 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.3525, allocations: 0.8313 MB / 358.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.3528, allocations: 47.25 kB / 358.4 MB, free: 1.527 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3529, allocations: 27.44 kB / 358.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3529, allocations: 0 / 358.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of Templates: time 0.0184/0.3713, allocations: 12.28 MB / 370.7 MB, free: 5.207 MB / 302.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)