Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0008618/0.0008619, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.0009846/0.0009847, allocations: 172.4 kB / 16.26 MB, free: 6.656 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.857/1.857, allocations: 205.4 MB / 222.5 MB, free: 5.57 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.0006089/0.0006088, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.388, allocations: 47.58 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003344/0.3914, allocations: 2.558 MB / 329.6 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.3933, allocations: 0.7515 MB / 330.3 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.3936, allocations: 4.344 kB / 330.3 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.3938, allocations: 36.12 kB / 330.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.394, allocations: 87.16 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.3944, allocations: 88.94 kB / 330.5 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005793/0.395, allocations: 391.5 kB / 330.9 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003254/0.3953, allocations: 109.1 kB / 331 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.3956, allocations: 124.2 kB / 331.2 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.3959, allocations: 140.3 kB / 331.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.523e-05/0.3959, allocations: 15.69 kB / 331.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.676e-05/0.396, allocations: 15.22 kB / 331.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.447e-05/0.3961, allocations: 56.17 kB / 331.4 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.3963, allocations: 175.3 kB / 331.6 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005388/0.3969, allocations: 393 kB / 331.9 MB, free: 13.65 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3969, allocations: 0 / 331.9 MB, free: 13.65 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3969, allocations: 1.188 kB / 331.9 MB, free: 13.65 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.3969, allocations: 0 / 331.9 MB, free: 13.65 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001265/0.3982, allocations: 0.5775 MB / 332.5 MB, free: 13.13 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.3983, allocations: 9.031 kB / 332.5 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.239e-05/0.3984, allocations: 34.03 kB / 332.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004106/0.3988, allocations: 282.8 kB / 332.8 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.3988, allocations: 19.28 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.422e-05/0.3989, allocations: 24.44 kB / 332.9 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006607/0.3996, allocations: 298.7 kB / 333.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3996, allocations: 0 / 333.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.3997, allocations: 11.06 kB / 333.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.3997, allocations: 6.188 kB / 333.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005204/0.4002, allocations: 202.6 kB / 333.4 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.4024, allocations: 1.173 MB / 334.6 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.4031, allocations: 221.3 kB / 334.8 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004064/0.4035, allocations: 148.3 kB / 334.9 MB, free: 11.28 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.4036, allocations: 4 kB / 334.9 MB, free: 11.27 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004607/0.404, allocations: 170.7 kB / 335.1 MB, free: 11.08 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 2.515e-06/0.404, allocations: 0 / 335.1 MB, free: 11.08 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001618/0.4057, allocations: 0.5262 MB / 335.6 MB, free: 10.53 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.4058, allocations: 132.5 kB / 335.7 MB, free: 10.37 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.4061, allocations: 244.9 kB / 336 MB, free: 10.12 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.4061, allocations: 33.69 kB / 336 MB, free: 10.08 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.4063, allocations: 160.5 kB / 336.2 MB, free: 9.918 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.292e-05/0.4064, allocations: 74.98 kB / 336.2 MB, free: 9.844 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.4064, allocations: 37.67 kB / 336.3 MB, free: 9.801 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002118/0.4067, allocations: 330.8 kB / 336.6 MB, free: 9.469 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.4068, allocations: 71.98 kB / 336.7 MB, free: 9.398 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.407, allocations: 121.1 kB / 336.8 MB, free: 9.262 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003441/0.4074, allocations: 175.3 kB / 337 MB, free: 9.078 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4074, allocations: 0 / 337 MB, free: 9.078 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005591/0.408, allocations: 298.1 kB / 337.3 MB, free: 8.777 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.408, allocations: 7.938 kB / 337.3 MB, free: 8.77 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.408, allocations: 4 kB / 337.3 MB, free: 8.766 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.4084, allocations: 92.73 kB / 337.4 MB, free: 8.672 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.4085, allocations: 31.92 kB / 337.4 MB, free: 8.641 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003027/0.4116, allocations: 1.952 MB / 339.3 MB, free: 6.555 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.4119, allocations: 35.77 kB / 339.4 MB, free: 6.52 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.412, allocations: 12 kB / 339.4 MB, free: 6.508 MB / 270.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.0002495/0.4122, allocations: 146.5 kB / 339.5 MB, free: 6.355 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.4123, allocations: 27.86 kB / 339.6 MB, free: 6.328 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.899e-05/0.4124, allocations: 26.19 kB / 339.6 MB, free: 6.301 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4124, allocations: 7.938 kB / 339.6 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4124, allocations: 0 / 339.6 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.4124, allocations: 3.984 kB / 339.6 MB, free: 6.289 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.4137, allocations: 0.7692 MB / 340.4 MB, free: 5.457 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.4138, allocations: 8.031 kB / 340.4 MB, free: 5.449 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.4139, allocations: 23.92 kB / 340.4 MB, free: 5.426 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003149/0.4142, allocations: 88.84 kB / 340.5 MB, free: 5.336 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.4142, allocations: 8 kB / 340.5 MB, free: 5.328 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002981/0.4172, allocations: 1.928 MB / 342.4 MB, free: 3.27 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4173, allocations: 4.062 kB / 342.4 MB, free: 3.266 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008424/0.4181, allocations: 464.8 kB / 342.9 MB, free: 2.789 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.4183, allocations: 128.8 kB / 343 MB, free: 2.645 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.4183, allocations: 4.062 kB / 343 MB, free: 2.641 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.4185, allocations: 27.92 kB / 343 MB, free: 2.613 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.4187, allocations: 39.94 kB / 343.1 MB, free: 2.574 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.4187, allocations: 4 kB / 343.1 MB, free: 2.57 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003332/0.4191, allocations: 172.5 kB / 343.2 MB, free: 2.402 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4191, allocations: 0 / 343.2 MB, free: 2.402 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006072/0.4197, allocations: 91.84 kB / 343.3 MB, free: 2.312 MB / 270.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.0002448/0.42, allocations: 103.2 kB / 343.4 MB, free: 2.199 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009277/0.4209, allocations: 366.4 kB / 343.8 MB, free: 1.828 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4209, allocations: 192 / 343.8 MB, free: 1.828 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004109/0.4213, allocations: 270.4 kB / 344.1 MB, free: 1.551 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.4218, allocations: 60.88 kB / 344.1 MB, free: 1.492 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.4232, allocations: 0.7344 MB / 344.9 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.4236, allocations: 0.7714 MB / 345.6 MB, free: 15.93 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.4237, allocations: 18.28 kB / 345.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.735e-05/0.4238, allocations: 19.44 kB / 345.7 MB, free: 15.89 MB / 286.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4238, allocations: 4 kB / 345.7 MB, free: 15.89 MB / 286.1 MB Notification: Performance of Templates: time 0.01074/0.4345, allocations: 4.403 MB / 350.1 MB, free: 11.49 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)