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.001319/0.001319, allocations: 108 kB / 15.61 MB, free: 148 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.001855/0.001855, allocations: 191.7 kB / 16.53 MB, free: 6.691 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.708/1.708, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001703/0.001704, allocations: 47.94 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3912, allocations: 46.64 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004489/0.3957, allocations: 2.881 MB / 328.2 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.3974, allocations: 0.7608 MB / 328.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.3975, allocations: 4.969 kB / 329 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.3978, allocations: 56.53 kB / 329 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.398, allocations: 97.34 kB / 329.1 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.3983, allocations: 106.2 kB / 329.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.3987, allocations: 406.4 kB / 329.6 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.399, allocations: 131.9 kB / 329.7 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.3992, allocations: 147.4 kB / 329.9 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.3995, allocations: 169.3 kB / 330 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.081e-05/0.3996, allocations: 36.41 kB / 330.1 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.452e-05/0.3996, allocations: 41.28 kB / 330.1 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.4e-05/0.3997, allocations: 71.67 kB / 330.2 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.4, allocations: 180.1 kB / 330.4 MB, free: 14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004247/0.4004, allocations: 426.7 kB / 330.8 MB, free: 13.69 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.4004, allocations: 0 / 330.8 MB, free: 13.69 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4004, allocations: 0 / 330.8 MB, free: 13.69 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.4004, allocations: 0 / 330.8 MB, free: 13.69 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.001108/0.4015, allocations: 0.6303 MB / 331.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.4016, allocations: 9.281 kB / 331.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.529e-05/0.4017, allocations: 34.38 kB / 331.5 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.402, allocations: 274.4 kB / 331.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.4021, allocations: 19.47 kB / 331.7 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.061e-05/0.4021, allocations: 27.94 kB / 331.8 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/0.4027, allocations: 292.7 kB / 332.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.4027, allocations: 1.219 kB / 332.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.4028, allocations: 10.09 kB / 332.1 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.4028, allocations: 6.625 kB / 332.1 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.4032, allocations: 206.5 kB / 332.3 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.4052, allocations: 1.154 MB / 333.4 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.4057, allocations: 228.1 kB / 333.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.4061, allocations: 143.4 kB / 333.8 MB, free: 11.24 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.4061, allocations: 4 kB / 333.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003839/0.4065, allocations: 170.7 kB / 334 MB, free: 11.04 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.4065, allocations: 0 / 334 MB, free: 11.04 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001498/0.408, allocations: 0.5107 MB / 334.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/0.4081, allocations: 132.5 kB / 334.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.4084, allocations: 245 kB / 334.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.4084, allocations: 33.7 kB / 334.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.4085, allocations: 160.4 kB / 335 MB, free: 9.895 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.281e-05/0.4086, allocations: 74.98 kB / 335.1 MB, free: 9.82 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.4087, allocations: 53.73 kB / 335.2 MB, free: 9.762 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4089, allocations: 330.8 kB / 335.5 MB, free: 9.43 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.409, allocations: 71.97 kB / 335.5 MB, free: 9.359 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.4092, allocations: 117.1 kB / 335.7 MB, free: 9.227 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.4096, allocations: 171.3 kB / 335.8 MB, free: 9.047 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4096, allocations: 4 kB / 335.8 MB, free: 9.043 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005337/0.4101, allocations: 290 kB / 336.1 MB, free: 8.75 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.4102, allocations: 8 kB / 336.1 MB, free: 8.742 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.4102, allocations: 3.984 kB / 336.1 MB, free: 8.738 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004091/0.4106, allocations: 100.8 kB / 336.2 MB, free: 8.637 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.4107, allocations: 23.98 kB / 336.3 MB, free: 8.613 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002473/0.4132, allocations: 2.165 MB / 338.4 MB, free: 6.305 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.4135, allocations: 31.86 kB / 338.4 MB, free: 6.273 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.4135, allocations: 4 kB / 338.5 MB, free: 6.27 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.0001543/0.4136, allocations: 141.9 kB / 338.6 MB, free: 6.121 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.4137, allocations: 35.66 kB / 338.6 MB, free: 6.086 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.288e-05/0.4138, allocations: 34.17 kB / 338.7 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4138, allocations: 0 / 338.7 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.4138, allocations: 0 / 338.7 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4138, allocations: 7.984 kB / 338.7 MB, free: 6.043 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009973/0.4148, allocations: 0.7693 MB / 339.4 MB, free: 5.211 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4148, allocations: 4.031 kB / 339.4 MB, free: 5.207 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.4149, allocations: 23.92 kB / 339.5 MB, free: 5.184 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002531/0.4152, allocations: 84.8 kB / 339.5 MB, free: 5.098 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.4152, allocations: 8 kB / 339.6 MB, free: 5.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.4175, allocations: 2.131 MB / 341.7 MB, free: 2.824 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4175, allocations: 112 / 341.7 MB, free: 2.824 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006888/0.4182, allocations: 469 kB / 342.1 MB, free: 2.344 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.4183, allocations: 120.7 kB / 342.3 MB, free: 2.207 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.4184, allocations: 12 kB / 342.3 MB, free: 2.195 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.4186, allocations: 15.98 kB / 342.3 MB, free: 2.18 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.4187, allocations: 31.95 kB / 342.3 MB, free: 2.148 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.4187, allocations: 11.94 kB / 342.3 MB, free: 2.137 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.4189, allocations: 176.5 kB / 342.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4189, allocations: 0 / 342.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.4194, allocations: 87.84 kB / 342.6 MB, free: 1.879 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.0001609/0.4196, allocations: 103.2 kB / 342.7 MB, free: 1.766 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007036/0.4203, allocations: 358.5 kB / 343 MB, free: 1.402 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.4203, allocations: 8.062 kB / 343 MB, free: 1.395 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003626/0.4207, allocations: 266.4 kB / 343.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.4211, allocations: 57.5 kB / 343.4 MB, free: 1.066 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.4222, allocations: 0.6035 MB / 344 MB, free: 444 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.4225, allocations: 0.7636 MB / 344.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.391e-05/0.4226, allocations: 22.28 kB / 344.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.263e-05/0.4227, allocations: 19.44 kB / 344.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4227, allocations: 4 kB / 344.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Templates: time 0.01012/0.4328, allocations: 4.845 MB / 349.6 MB, free: 10.76 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)