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.00129/0.00129, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.623/1.623, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001529/0.001529, allocations: 56.39 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3266, allocations: 46.63 MB / 325.3 MB, free: 1.984 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006192/0.3329, allocations: 3.909 MB / 329.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003609/0.3365, allocations: 1.016 MB / 330.2 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000768/0.3374, allocations: 6.625 kB / 330.2 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.3379, allocations: 78.19 kB / 330.3 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006121/0.3386, allocations: 171.3 kB / 330.5 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008782/0.3394, allocations: 207.3 kB / 330.7 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.3409, allocations: 0.7561 MB / 331.4 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004677/0.3414, allocations: 169 kB / 331.6 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007145/0.3421, allocations: 295.5 kB / 331.9 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004366/0.3426, allocations: 335.9 kB / 332.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.3427, allocations: 76.16 kB / 332.3 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.3429, allocations: 76.75 kB / 332.4 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.343, allocations: 156.7 kB / 332.5 MB, free: 12.49 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000325/0.3434, allocations: 310.5 kB / 332.8 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008365/0.3442, allocations: 0.7869 MB / 333.6 MB, free: 11.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3442, allocations: 0 / 333.6 MB, free: 11.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3442, allocations: 1.312 kB / 333.6 MB, free: 11.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3443, allocations: 0 / 333.6 MB, free: 11.66 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.002924/0.3472, allocations: 0.9833 MB / 334.6 MB, free: 10.66 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.598e-05/0.3473, allocations: 8.031 kB / 334.6 MB, free: 10.66 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.3474, allocations: 56.28 kB / 334.7 MB, free: 10.6 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006164/0.3481, allocations: 401.9 kB / 335.1 MB, free: 10.17 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.495e-05/0.3481, allocations: 33.38 kB / 335.1 MB, free: 10.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.893e-05/0.3482, allocations: 48.11 kB / 335.1 MB, free: 10.09 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.3496, allocations: 0.563 MB / 335.7 MB, free: 9.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3496, allocations: 0 / 335.7 MB, free: 9.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.671e-05/0.3496, allocations: 12 kB / 335.7 MB, free: 9.488 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.3497, allocations: 8 kB / 335.7 MB, free: 9.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.3514, allocations: 0.5815 MB / 336.3 MB, free: 8.902 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00388/0.3553, allocations: 2.008 MB / 338.3 MB, free: 6.801 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003722/0.359, allocations: 0.7883 MB / 339.1 MB, free: 6.004 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3601, allocations: 365.3 kB / 339.5 MB, free: 5.645 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.3601, allocations: 7.984 kB / 339.5 MB, free: 5.637 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/0.3613, allocations: 415.3 kB / 339.9 MB, free: 5.215 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.875e-06/0.3613, allocations: 0 / 339.9 MB, free: 5.215 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009692/0.371, allocations: 1.79 MB / 341.7 MB, free: 3.395 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.3712, allocations: 81.11 kB / 341.7 MB, free: 3.297 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006874/0.3719, allocations: 385.7 kB / 342.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.553e-05/0.372, allocations: 41.64 kB / 342.2 MB, free: 2.867 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3721, allocations: 216.6 kB / 342.4 MB, free: 2.648 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.3723, allocations: 134.1 kB / 342.5 MB, free: 2.516 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.3724, allocations: 78 kB / 342.6 MB, free: 2.43 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3726, allocations: 350.8 kB / 342.9 MB, free: 2.078 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000852/0.3734, allocations: 264.6 kB / 343.2 MB, free: 1.82 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00083/0.3743, allocations: 317.9 kB / 343.5 MB, free: 1.5 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.3759, allocations: 0.5407 MB / 344 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3759, allocations: 0 / 344 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004721/0.3807, allocations: 1.048 MB / 345.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.379e-05/0.3807, allocations: 33.69 kB / 345.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3808, allocations: 4 kB / 345.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/0.3821, allocations: 396.5 kB / 345.5 MB, free: 15.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.3826, allocations: 87.86 kB / 345.6 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008196/0.3908, allocations: 3.665 MB / 349.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007616/0.3916, allocations: 83.66 kB / 349.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.3917, allocations: 19.98 kB / 349.3 MB, free: 11.45 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.0002614/0.3919, allocations: 169.9 kB / 349.5 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.151e-05/0.392, allocations: 51.47 kB / 349.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.3921, allocations: 52.38 kB / 349.6 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3922, allocations: 4 kB / 349.6 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3922, allocations: 0 / 349.6 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3922, allocations: 3.984 kB / 349.6 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007237/0.3929, allocations: 0.5794 MB / 350.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.3929, allocations: 3.938 kB / 350.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.3934, allocations: 79.88 kB / 350.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.3945, allocations: 400.5 kB / 350.7 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.3946, allocations: 8 kB / 350.7 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008751/0.4033, allocations: 3.662 MB / 354.3 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4034, allocations: 0 / 354.3 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004851/0.4082, allocations: 1.259 MB / 355.6 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.4088, allocations: 172.5 kB / 355.8 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.241e-05/0.4089, allocations: 15.94 kB / 355.8 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005436/0.4094, allocations: 67.86 kB / 355.9 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/0.4097, allocations: 47.94 kB / 355.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.14e-05/0.4097, allocations: 11.98 kB / 355.9 MB, free: 4.645 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004199/0.4101, allocations: 271.2 kB / 356.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4102, allocations: 4 kB / 356.2 MB, free: 4.375 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008074/0.411, allocations: 175.7 kB / 356.4 MB, free: 4.203 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.0002719/0.4113, allocations: 122.3 kB / 356.5 MB, free: 4.074 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002754/0.414, allocations: 0.8916 MB / 357.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.414, allocations: 0 / 357.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.4155, allocations: 0.5306 MB / 357.9 MB, free: 2.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005892/0.4161, allocations: 81.45 kB / 358 MB, free: 2.535 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.4198, allocations: 1.164 MB / 359.1 MB, free: 1.344 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.4203, allocations: 0.8317 MB / 360 MB, free: 500 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002933/0.4206, allocations: 35.28 kB / 360 MB, free: 464 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.4208, allocations: 31.42 kB / 360 MB, free: 432 kB / 286.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4208, allocations: 0 / 360 MB, free: 432 kB / 286.1 MB Notification: Performance of Templates: time 0.02619/0.447, allocations: 13.15 MB / 373.2 MB, free: 3.262 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)