Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.PowerConverters.Examples.ACAC.Dimmer_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160000,variableFilter="time|voltageSensor.v|multiSensor.i|multiSensor.v|multiSensor.power|meanPower.y|vRMS.y|vH01.y_rms|vH01.y_arg|iRMS.y|iH01.y_rms|iH01.y_arg",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160000,variableFilter="time|voltageSensor.v|multiSensor.i|multiSensor.v|multiSensor.power|meanPower.y|vRMS.y|vH01.y_rms|vH01.y_arg|iRMS.y|iH01.y_rms|iH01.y_arg",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001057, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001085/0.001085, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009681/0.0009681, allocations: 47.92 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2149, allocations: 49.43 MB / 401.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL): time 0.006411/0.2213, allocations: 5.354 MB / 406.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003431/0.2248, allocations: 2.024 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004127/0.2252, allocations: 23.88 kB / 408.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008992/0.2261, allocations: 0.6225 MB / 409.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.2272, allocations: 0.7431 MB / 410.2 MB, free: 72 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.2283, allocations: 0.572 MB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001688/0.23, allocations: 1.832 MB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007054/0.2308, allocations: 0.5471 MB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.2322, allocations: 1.465 MB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007262/0.2329, allocations: 0.6599 MB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002048/0.2331, allocations: 132 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000295/0.2334, allocations: 160 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004372/0.2339, allocations: 0.5126 MB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006673/0.2345, allocations: 0.8073 MB / 416.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.2363, allocations: 2.106 MB / 419 MB, free: 7.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2363, allocations: 0 / 419 MB, free: 7.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2363, allocations: 0 / 419 MB, free: 7.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.2364, allocations: 0 / 419 MB, free: 7.23 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.004433/0.2408, allocations: 2.503 MB / 421.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2408, allocations: 8.031 kB / 421.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002979/0.2411, allocations: 230.1 kB / 421.7 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002675/0.2438, allocations: 1.542 MB / 423.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.2439, allocations: 81.98 kB / 423.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.2441, allocations: 91.91 kB / 423.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/0.2459, allocations: 1 MB / 424.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.2459, allocations: 7.938 kB / 424.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.523e-05/0.246, allocations: 35.98 kB / 424.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.2461, allocations: 16 kB / 424.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.2478, allocations: 0.7846 MB / 425.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004934/0.2528, allocations: 3.198 MB / 428.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.2548, allocations: 0.9136 MB / 429.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009773/0.2558, allocations: 440.2 kB / 429.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.923e-05/0.2559, allocations: 12.64 kB / 429.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.2571, allocations: 0.6414 MB / 430.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.574e-06/0.2571, allocations: 0 / 430.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.003483/0.2606, allocations: 1.515 MB / 432 MB, free: 9.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/0.2607, allocations: 171.2 kB / 432.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002003/0.2627, allocations: 1.814 MB / 434 MB, free: 7.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.293e-05/0.2628, allocations: 53.69 kB / 434 MB, free: 7.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004501/0.2632, allocations: 0.5612 MB / 434.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.2634, allocations: 264.3 kB / 434.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/0.2638, allocations: 249.8 kB / 435.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2639, allocations: 345.9 kB / 435.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008467/0.2648, allocations: 376.6 kB / 435.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.2658, allocations: 0.6378 MB / 436.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/0.2676, allocations: 0.9901 MB / 437.4 MB, free: 4.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.2676, allocations: 4 kB / 437.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002297/0.2699, allocations: 1.193 MB / 438.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.2699, allocations: 49.69 kB / 438.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.27, allocations: 8.125 kB / 438.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/0.2702, allocations: 88.75 kB / 438.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007885/0.271, allocations: 191.7 kB / 439 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.273, allocations: 2.002 MB / 441 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008159/0.2739, allocations: 127.1 kB / 441.1 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/0.2739, allocations: 39.98 kB / 441.1 MB, free: 308 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001359/0.2753, allocations: 0.8415 MB / 442 MB, free: 15.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008811/0.2762, allocations: 0.6184 MB / 442.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001566/0.2778, allocations: 0.959 MB / 443.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.078e-06/0.2778, allocations: 0 / 443.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=121) (initialization_lambda0): time 0.002132/0.2799, allocations: 1.178 MB / 444.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.28, allocations: 33.7 kB / 444.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.28, allocations: 8 kB / 444.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.2802, allocations: 97.03 kB / 444.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007438/0.281, allocations: 187.7 kB / 445 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.2828, allocations: 1.986 MB / 447 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007921/0.2836, allocations: 119.4 kB / 447.1 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.2837, allocations: 36 kB / 447.2 MB, free: 9.863 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 40 (meanPower.y_last,$PRE.meanPower.y_last,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,iH01.mean2.y_last,$PRE.iH01.mean2.y_last,iH01.mean1.y_last,$PRE.iH01.mean1.y_last,iRMS.mean.y_last,$PRE.iRMS.mean.y_last,vH01.mean2.y_last,$PRE.vH01.mean2.y_last,vH01.mean1.y_last,$PRE.vH01.mean1.y_last,vRMS.mean.y_last,$PRE.vRMS.mean.y_last,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,adaptor.fire_n[1],adaptor.fire_p[1],adaptor.timerNegative[1].entryTime,$PRE.adaptor.timerNegative[1].entryTime,adaptor.timerPositive[1].entryTime,$PRE.adaptor.timerPositive[1].entryTime,adaptor.negativeThreshold[1].y,adaptor.positiveThreshold[1].y,triac.thyristor2.off,$PRE.triac.thyristor2.off,triac.thyristor1.off,$PRE.triac.thyristor1.off,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 110 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002841/0.284, allocations: 276.5 kB / 447.5 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.2843, allocations: 181.7 kB / 447.6 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.2868, allocations: 1.114 MB / 448.7 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.2868, allocations: 3.984 kB / 448.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2868, allocations: 288 / 448.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007546/0.2876, allocations: 470.4 kB / 449.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.2878, allocations: 31.98 kB / 449.2 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007117/0.2885, allocations: 79.78 kB / 449.3 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.2887, allocations: 80.84 kB / 449.4 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00298/0.2917, allocations: 1.239 MB / 450.6 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003073/0.2948, allocations: 1.789 MB / 452.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008673/0.2956, allocations: 459.7 kB / 452.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001704/0.2973, allocations: 1.276 MB / 454.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of Backend: time 1.764e-06/0.2974, allocations: 0 / 454.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004154/0.3015, allocations: 1.912 MB / 456.1 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of SimCode: time 0.004917/0.3065, allocations: 3.742 MB / 459.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of Templates: time 0.03132/0.3378, allocations: 19.1 MB / 478.9 MB, free: 10.22 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe 2>&1)