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.001428/0.001428, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001376/0.001376, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.498/1.498, allocations: 205.1 MB / 222 MB, free: 4.758 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.001095/0.001095, allocations: 44.31 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2898, allocations: 46.63 MB / 324.7 MB, free: 2.164 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004001/0.2939, allocations: 2.93 MB / 327.6 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.2956, allocations: 0.7617 MB / 328.4 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.2958, allocations: 8.469 kB / 328.4 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.2961, allocations: 35.88 kB / 328.4 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.2963, allocations: 86.2 kB / 328.5 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.2966, allocations: 89.77 kB / 328.6 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004717/0.2971, allocations: 387.3 kB / 329 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.2974, allocations: 110.1 kB / 329.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.2976, allocations: 134 kB / 329.2 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.2978, allocations: 152.6 kB / 329.3 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.02e-05/0.2979, allocations: 20.78 kB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.233e-05/0.298, allocations: 20.09 kB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.729e-05/0.298, allocations: 55.61 kB / 329.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001917/0.2982, allocations: 164.8 kB / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.2987, allocations: 407.6 kB / 330 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2987, allocations: 0 / 330 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2987, allocations: 1 kB / 330 MB, free: 14.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.363e-06/0.2987, allocations: 0 / 330 MB, free: 14.11 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.001263/0.3, allocations: 0.6226 MB / 330.6 MB, free: 13.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3, allocations: 9.094 kB / 330.6 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.534e-05/0.3001, allocations: 38.41 kB / 330.7 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.3005, allocations: 273.9 kB / 330.9 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.3005, allocations: 22.89 kB / 331 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-05/0.3006, allocations: 33.08 kB / 331 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006233/0.3012, allocations: 293 kB / 331.3 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3013, allocations: 0 / 331.3 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/0.3013, allocations: 10.34 kB / 331.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.3013, allocations: 6.406 kB / 331.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004231/0.3017, allocations: 206.6 kB / 331.5 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3036, allocations: 1.155 MB / 332.6 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.3042, allocations: 219.7 kB / 332.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.3045, allocations: 142.5 kB / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.3045, allocations: 2.281 kB / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003795/0.3049, allocations: 177.4 kB / 333.2 MB, free: 11.58 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.653e-06/0.3049, allocations: 0 / 333.2 MB, free: 11.58 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001429/0.3064, allocations: 0.5145 MB / 333.7 MB, free: 11.04 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.582e-05/0.3065, allocations: 132.5 kB / 333.8 MB, free: 10.88 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.3067, allocations: 241 kB / 334.1 MB, free: 10.63 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3068, allocations: 33.7 kB / 334.1 MB, free: 10.59 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.3069, allocations: 172.3 kB / 334.3 MB, free: 10.42 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.383e-05/0.307, allocations: 70.98 kB / 334.3 MB, free: 10.35 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.58e-05/0.3071, allocations: 53.73 kB / 334.4 MB, free: 10.29 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3072, allocations: 334.8 kB / 334.7 MB, free: 9.957 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.3074, allocations: 63.98 kB / 334.8 MB, free: 9.895 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.3076, allocations: 125.1 kB / 334.9 MB, free: 9.754 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.3079, allocations: 171.3 kB / 335.1 MB, free: 9.574 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3079, allocations: 4 kB / 335.1 MB, free: 9.57 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005004/0.3084, allocations: 290 kB / 335.3 MB, free: 9.277 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3085, allocations: 8 kB / 335.4 MB, free: 9.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3085, allocations: 0 / 335.4 MB, free: 9.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.3089, allocations: 96.89 kB / 335.4 MB, free: 9.172 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.309, allocations: 23.98 kB / 335.5 MB, free: 9.148 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002284/0.3113, allocations: 1.948 MB / 337.4 MB, free: 7.066 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.3116, allocations: 31.73 kB / 337.4 MB, free: 7.035 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.3116, allocations: 8.062 kB / 337.5 MB, free: 7.027 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.0002019/0.3118, allocations: 146.5 kB / 337.6 MB, free: 6.875 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.3119, allocations: 27.72 kB / 337.6 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.618e-05/0.3119, allocations: 38.17 kB / 337.7 MB, free: 6.809 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.3119, allocations: 7.938 kB / 337.7 MB, free: 6.801 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.312, allocations: 0 / 337.7 MB, free: 6.801 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.312, allocations: 3.984 kB / 337.7 MB, free: 6.797 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.313, allocations: 0.7608 MB / 338.4 MB, free: 5.973 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.313, allocations: 0 / 338.4 MB, free: 5.973 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.3131, allocations: 27.86 kB / 338.5 MB, free: 5.945 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002944/0.3134, allocations: 92.84 kB / 338.6 MB, free: 5.852 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.3135, allocations: 4 kB / 338.6 MB, free: 5.848 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/0.3157, allocations: 1.928 MB / 340.5 MB, free: 3.789 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3158, allocations: 0 / 340.5 MB, free: 3.789 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007348/0.3165, allocations: 453.7 kB / 340.9 MB, free: 3.324 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.3167, allocations: 120.8 kB / 341 MB, free: 3.188 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.3167, allocations: 8.125 kB / 341.1 MB, free: 3.18 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.3169, allocations: 31.91 kB / 341.1 MB, free: 3.148 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3171, allocations: 27.95 kB / 341.1 MB, free: 3.121 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.3171, allocations: 8 kB / 341.1 MB, free: 3.113 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.3173, allocations: 180.4 kB / 341.3 MB, free: 2.938 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3173, allocations: 96 / 341.3 MB, free: 2.938 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005134/0.3178, allocations: 91.78 kB / 341.4 MB, free: 2.848 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.0001692/0.318, allocations: 107.2 kB / 341.5 MB, free: 2.73 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007649/0.3188, allocations: 354.4 kB / 341.8 MB, free: 2.371 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3188, allocations: 0 / 341.8 MB, free: 2.371 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004314/0.3192, allocations: 270.7 kB / 342.1 MB, free: 2.094 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.3197, allocations: 60.7 kB / 342.2 MB, free: 2.035 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.3211, allocations: 0.6985 MB / 342.9 MB, free: 1.309 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.3217, allocations: 0.7635 MB / 343.6 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0002237/0.3219, allocations: 22.3 kB / 343.6 MB, free: 0.5 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.322, allocations: 15.44 kB / 343.7 MB, free: 496 kB / 270.1 MB Notification: Performance of SimCode: time 6.32e-07/0.322, allocations: 0 / 343.7 MB, free: 496 kB / 270.1 MB Notification: Performance of Templates: time 0.01148/0.3335, allocations: 4.463 MB / 348.1 MB, free: 12.02 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)