Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.001023/0.001023, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001189/0.00119, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 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.1 MB, free: 5.637 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.0004699/0.0004701, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3768, allocations: 47.59 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004842/0.3817, allocations: 3.357 MB / 329.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003183/0.385, allocations: 0.9819 MB / 330.8 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006582/0.3857, allocations: 5.281 kB / 330.8 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003061/0.386, allocations: 62.17 kB / 330.9 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005322/0.3866, allocations: 144.2 kB / 331 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000724/0.3873, allocations: 127.4 kB / 331.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.3884, allocations: 0.6665 MB / 331.8 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.3889, allocations: 134.1 kB / 331.9 MB, free: 13.16 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007151/0.3896, allocations: 237.2 kB / 332.2 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005769/0.3902, allocations: 282.6 kB / 332.5 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.716e-05/0.3903, allocations: 31.59 kB / 332.5 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.3905, allocations: 33.09 kB / 332.5 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.3906, allocations: 103.4 kB / 332.6 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.3908, allocations: 124.9 kB / 332.7 MB, free: 12.67 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007158/0.3915, allocations: 0.5948 MB / 333.3 MB, free: 12.21 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.3915, allocations: 0 / 333.3 MB, free: 12.21 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.3915, allocations: 0 / 333.3 MB, free: 12.21 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.3916, allocations: 5.125 kB / 333.3 MB, free: 12.2 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.003046/0.3946, allocations: 0.9466 MB / 334.3 MB, free: 11.49 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.679e-05/0.3947, allocations: 13.92 kB / 334.3 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.395, allocations: 59.67 kB / 334.4 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008593/0.3958, allocations: 383.8 kB / 334.7 MB, free: 11.1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.326e-05/0.3959, allocations: 32.36 kB / 334.8 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.807e-05/0.396, allocations: 38.62 kB / 334.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.3976, allocations: 0.5904 MB / 335.4 MB, free: 10.45 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.3976, allocations: 0 / 335.4 MB, free: 10.45 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.837e-05/0.3977, allocations: 16 kB / 335.4 MB, free: 10.43 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.3977, allocations: 8 kB / 335.4 MB, free: 10.42 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.3995, allocations: 0.6479 MB / 336.1 MB, free: 9.773 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004026/0.4035, allocations: 2.047 MB / 338.1 MB, free: 7.629 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003666/0.4072, allocations: 0.9327 MB / 339 MB, free: 6.688 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.4084, allocations: 401.7 kB / 339.4 MB, free: 6.293 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.877e-05/0.4084, allocations: 11.73 kB / 339.5 MB, free: 6.281 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.4097, allocations: 439.6 kB / 339.9 MB, free: 5.836 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 4.448e-06/0.4097, allocations: 0 / 339.9 MB, free: 5.836 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009912/0.4196, allocations: 2.045 MB / 341.9 MB, free: 3.762 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.4198, allocations: 81.11 kB / 342 MB, free: 3.664 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007857/0.4206, allocations: 389.5 kB / 342.4 MB, free: 3.27 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.4208, allocations: 33.7 kB / 342.4 MB, free: 3.23 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004323/0.4212, allocations: 228.6 kB / 342.6 MB, free: 3 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.4214, allocations: 130.1 kB / 342.8 MB, free: 2.871 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.4214, allocations: 7.938 kB / 342.8 MB, free: 2.863 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0003325/0.4218, allocations: 350.8 kB / 343.1 MB, free: 2.512 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009236/0.4227, allocations: 304.6 kB / 343.4 MB, free: 2.211 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.4238, allocations: 350.1 kB / 343.8 MB, free: 1.859 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008957/0.4247, allocations: 319.5 kB / 344.1 MB, free: 1.543 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.4247, allocations: 0 / 344.1 MB, free: 1.543 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004804/0.4295, allocations: 1.186 MB / 345.3 MB, free: 348 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.081e-05/0.4296, allocations: 29.7 kB / 345.3 MB, free: 312 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.4297, allocations: 0 / 345.3 MB, free: 312 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.431, allocations: 424.5 kB / 345.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005139/0.4315, allocations: 91.88 kB / 345.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009513/0.4411, allocations: 3.502 MB / 349.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008902/0.442, allocations: 107.7 kB / 349.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.4422, allocations: 15.98 kB / 349.4 MB, free: 12.04 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004825/0.4427, allocations: 170.5 kB / 349.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.4429, allocations: 47.39 kB / 349.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001772/0.4431, allocations: 52.38 kB / 349.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4431, allocations: 4 kB / 349.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.4431, allocations: 0 / 349.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.505e-06/0.4431, allocations: 3.984 kB / 349.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.4441, allocations: 0.5873 MB / 350.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.4442, allocations: 4 kB / 350.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004524/0.4446, allocations: 83.88 kB / 350.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.4458, allocations: 420.5 kB / 350.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.497e-05/0.4459, allocations: 11.98 kB / 350.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009115/0.455, allocations: 3.478 MB / 354.3 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4551, allocations: 4 kB / 354.3 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/0.4596, allocations: 1.412 MB / 355.7 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/0.4601, allocations: 168.6 kB / 355.8 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.4603, allocations: 7.938 kB / 355.8 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/0.4609, allocations: 83.92 kB / 355.9 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.4611, allocations: 48.11 kB / 356 MB, free: 5.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.4612, allocations: 15.98 kB / 356 MB, free: 5.227 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004085/0.4616, allocations: 271.2 kB / 356.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4616, allocations: 0 / 356.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0009639/0.4626, allocations: 171.7 kB / 356.4 MB, free: 4.797 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002359/0.4628, allocations: 123.1 kB / 356.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002662/0.4655, allocations: 0.939 MB / 357.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4655, allocations: 0 / 357.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001621/0.4672, allocations: 0.5698 MB / 358.1 MB, free: 3.117 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.468, allocations: 77.95 kB / 358.1 MB, free: 3.039 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.4716, allocations: 1.379 MB / 359.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.4722, allocations: 0.8313 MB / 360.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003081/0.4725, allocations: 39.28 kB / 360.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4726, allocations: 35.42 kB / 360.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4726, allocations: 0 / 360.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of Templates: time 0.02523/0.4979, allocations: 11.86 MB / 372.3 MB, free: 4.836 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)