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.000821/0.0008207, allocations: 97.88 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.005727/0.005727, allocations: 171.6 kB / 16.27 MB, free: 6.652 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.948/1.948, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0006123/0.0006125, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4009, allocations: 47.59 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00503/0.4061, allocations: 3.53 MB / 330.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.4087, allocations: 1.009 MB / 331.6 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004065/0.4092, allocations: 10.5 kB / 331.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.4095, allocations: 60.83 kB / 331.6 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004042/0.4099, allocations: 132.2 kB / 331.8 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000619/0.4105, allocations: 199.9 kB / 332 MB, free: 13.38 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.412, allocations: 0.7009 MB / 332.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004855/0.4125, allocations: 150.3 kB / 332.8 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009105/0.4134, allocations: 236.1 kB / 333 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005365/0.414, allocations: 294.7 kB / 333.3 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.95e-05/0.4141, allocations: 35.38 kB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.632e-05/0.4142, allocations: 32.25 kB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.4144, allocations: 100.8 kB / 333.5 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004098/0.4148, allocations: 293.9 kB / 333.8 MB, free: 12.24 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008799/0.4157, allocations: 0.7371 MB / 334.5 MB, free: 11.67 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.4157, allocations: 0 / 334.5 MB, free: 11.67 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4157, allocations: 0 / 334.5 MB, free: 11.67 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.4157, allocations: 1.062 kB / 334.5 MB, free: 11.67 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.002773/0.4185, allocations: 0.9526 MB / 335.5 MB, free: 10.84 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.4186, allocations: 8.031 kB / 335.5 MB, free: 10.83 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.4187, allocations: 56.28 kB / 335.5 MB, free: 10.78 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/0.4194, allocations: 394.1 kB / 335.9 MB, free: 10.36 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.25e-05/0.4194, allocations: 33.38 kB / 336 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.533e-05/0.4195, allocations: 40.12 kB / 336 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.421, allocations: 0.5942 MB / 336.6 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.4211, allocations: 4 kB / 336.6 MB, free: 9.664 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.409e-05/0.4211, allocations: 12 kB / 336.6 MB, free: 9.652 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4211, allocations: 12 kB / 336.6 MB, free: 9.641 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001803/0.423, allocations: 0.6441 MB / 337.3 MB, free: 8.996 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004075/0.427, allocations: 2.055 MB / 339.3 MB, free: 6.848 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004084/0.4312, allocations: 0.9361 MB / 340.2 MB, free: 5.902 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.4322, allocations: 401 kB / 340.6 MB, free: 5.508 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.4323, allocations: 7.984 kB / 340.6 MB, free: 5.5 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.4335, allocations: 447.3 kB / 341.1 MB, free: 5.047 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.775e-06/0.4335, allocations: 0 / 341.1 MB, free: 5.047 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.01042/0.4439, allocations: 2.052 MB / 343.1 MB, free: 2.965 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.4441, allocations: 89.09 kB / 343.2 MB, free: 2.859 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008104/0.445, allocations: 381.7 kB / 343.6 MB, free: 2.473 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.4451, allocations: 29.7 kB / 343.6 MB, free: 2.438 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002697/0.4454, allocations: 228.5 kB / 343.9 MB, free: 2.207 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.4455, allocations: 126.2 kB / 344 MB, free: 2.082 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.041e-05/0.4456, allocations: 41.69 kB / 344 MB, free: 2.035 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.4459, allocations: 350.8 kB / 344.4 MB, free: 1.684 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009417/0.4468, allocations: 312.6 kB / 344.7 MB, free: 1.375 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009286/0.4478, allocations: 349.8 kB / 345 MB, free: 1.023 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001762/0.4495, allocations: 0.6111 MB / 345.6 MB, free: 412 kB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.4496, allocations: 4 kB / 345.6 MB, free: 408 kB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005158/0.4547, allocations: 1.205 MB / 346.8 MB, free: 15.17 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.947e-05/0.4548, allocations: 33.64 kB / 346.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4549, allocations: 4 kB / 346.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.4563, allocations: 428.4 kB / 347.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004803/0.4568, allocations: 91.88 kB / 347.4 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009308/0.4661, allocations: 3.51 MB / 350.9 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008761/0.467, allocations: 103.6 kB / 351 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.982e-05/0.4671, allocations: 15.98 kB / 351 MB, free: 10.86 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.0004165/0.4675, allocations: 166.5 kB / 351.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.4676, allocations: 39.53 kB / 351.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.4678, allocations: 60.3 kB / 351.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4678, allocations: 4 kB / 351.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4678, allocations: 0 / 351.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4678, allocations: 4 kB / 351.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009348/0.4687, allocations: 0.5833 MB / 351.8 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4688, allocations: 0 / 351.8 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004834/0.4692, allocations: 91.86 kB / 351.9 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001164/0.4704, allocations: 420.6 kB / 352.3 MB, free: 9.441 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.4705, allocations: 15.92 kB / 352.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008293/0.4788, allocations: 3.478 MB / 355.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4788, allocations: 0 / 355.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005133/0.484, allocations: 1.419 MB / 357.3 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003774/0.4844, allocations: 176.4 kB / 357.4 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.76e-05/0.4845, allocations: 11.98 kB / 357.4 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/0.4851, allocations: 75.94 kB / 357.5 MB, free: 4.094 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.4853, allocations: 55.92 kB / 357.6 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.176e-05/0.4853, allocations: 11.98 kB / 357.6 MB, free: 4.027 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000399/0.4857, allocations: 271.2 kB / 357.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4857, allocations: 8 kB / 357.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008189/0.4866, allocations: 167.7 kB / 358 MB, free: 3.594 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.0002511/0.4868, allocations: 115.2 kB / 358.1 MB, free: 3.469 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.4896, allocations: 0.95 MB / 359.1 MB, free: 2.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.4897, allocations: 4 kB / 359.1 MB, free: 2.492 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.4912, allocations: 0.5619 MB / 359.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006514/0.4919, allocations: 81.56 kB / 359.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00342/0.4953, allocations: 1.421 MB / 361.1 MB, free: 408 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.4958, allocations: 0.8391 MB / 362 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.4961, allocations: 39.27 kB / 362 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.4962, allocations: 27.44 kB / 362.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4962, allocations: 0 / 362.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of Templates: time 0.02369/0.5199, allocations: 12.16 MB / 374.2 MB, free: 3.297 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)