Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,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_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,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_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 113.2 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.91 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2615, allocations: 50.55 MB / 410 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R): time 0.006967/0.2685, allocations: 5.355 MB / 415.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00426/0.2728, allocations: 2.26 MB / 417.6 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008178/0.2736, allocations: 23.88 kB / 417.6 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.2748, allocations: 0.6264 MB / 418.2 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001644/0.2765, allocations: 0.778 MB / 419 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.2781, allocations: 0.6119 MB / 419.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002193/0.2803, allocations: 1.852 MB / 421.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008006/0.2811, allocations: 0.5508 MB / 422 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.2829, allocations: 1.472 MB / 423.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009605/0.2839, allocations: 0.6521 MB / 424.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003057/0.2842, allocations: 136 kB / 424.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003856/0.2846, allocations: 184 kB / 424.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005161/0.2851, allocations: 0.5204 MB / 425 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009825/0.2861, allocations: 0.7995 MB / 425.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00206/0.2882, allocations: 2.13 MB / 427.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.2882, allocations: 0 / 427.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2882, allocations: 3.938 kB / 427.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.198e-05/0.2883, allocations: 0 / 427.9 MB, free: 15.52 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.005191/0.2934, allocations: 2.548 MB / 430.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2935, allocations: 8.031 kB / 430.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000863/0.2944, allocations: 270.2 kB / 430.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003066/0.2974, allocations: 1.586 MB / 432.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-05/0.2975, allocations: 73.97 kB / 432.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.2977, allocations: 92 kB / 432.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.2996, allocations: 0.9766 MB / 433.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.2996, allocations: 7.844 kB / 433.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-05/0.2997, allocations: 39.98 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.2998, allocations: 20 kB / 433.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001825/0.3016, allocations: 0.7767 MB / 434.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005815/0.3074, allocations: 3.184 MB / 437.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/0.3096, allocations: 0.9066 MB / 438.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009964/0.3106, allocations: 434.5 kB / 438.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.855e-05/0.3107, allocations: 12.64 kB / 438.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001269/0.3119, allocations: 0.6286 MB / 439.5 MB, free: 3.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 4.308e-06/0.312, allocations: 4 kB / 439.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.003886/0.3159, allocations: 1.524 MB / 441 MB, free: 2.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.316, allocations: 182.8 kB / 441.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002741/0.3187, allocations: 1.857 MB / 443 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.831e-05/0.3188, allocations: 57.64 kB / 443.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005173/0.3194, allocations: 0.585 MB / 443.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.3196, allocations: 256.3 kB / 443.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.3199, allocations: 241.9 kB / 444.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3201, allocations: 345.9 kB / 444.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009366/0.321, allocations: 376.6 kB / 444.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009871/0.322, allocations: 0.6222 MB / 445.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.3238, allocations: 0.9939 MB / 446.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.3238, allocations: 0 / 446.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002664/0.3265, allocations: 1.212 MB / 447.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.943e-05/0.3266, allocations: 33.7 kB / 447.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.3266, allocations: 8 kB / 447.7 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003949/0.327, allocations: 100.9 kB / 447.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007732/0.3278, allocations: 183.7 kB / 448 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002275/0.3301, allocations: 2.111 MB / 450.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008968/0.331, allocations: 135.2 kB / 450.3 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.299e-05/0.3311, allocations: 47.92 kB / 450.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001589/0.3327, allocations: 0.8414 MB / 451.1 MB, free: 7.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009432/0.3336, allocations: 0.6105 MB / 451.8 MB, free: 6.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001584/0.3352, allocations: 0.955 MB / 452.7 MB, free: 5.676 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.454e-06/0.3352, allocations: 4 kB / 452.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization_lambda0): time 0.002201/0.3375, allocations: 1.181 MB / 453.9 MB, free: 4.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.3375, allocations: 33.7 kB / 453.9 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3375, allocations: 8 kB / 453.9 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002772/0.3378, allocations: 108.7 kB / 454 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/0.3385, allocations: 179.7 kB / 454.2 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.3406, allocations: 2.116 MB / 456.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008821/0.3415, allocations: 123.3 kB / 456.5 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.985e-05/0.3416, allocations: 36 kB / 456.5 MB, free: 1.727 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 (107): * Single equations (assignments): 105 * 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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002942/0.3419, allocations: 272.1 kB / 456.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/0.3421, allocations: 189.7 kB / 456.9 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.3445, allocations: 1.103 MB / 458 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.3445, allocations: 3.984 kB / 458 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3445, allocations: 0 / 458 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008182/0.3453, allocations: 482.2 kB / 458.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001967/0.3455, allocations: 27.98 kB / 458.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006746/0.3462, allocations: 75.91 kB / 458.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.3464, allocations: 68.69 kB / 458.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002814/0.3492, allocations: 1.227 MB / 459.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002922/0.3522, allocations: 1.775 MB / 461.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008552/0.353, allocations: 448.9 kB / 462.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001709/0.3547, allocations: 1.305 MB / 463.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of Backend: time 4.4e-07/0.3548, allocations: 0 / 463.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004171/0.3589, allocations: 1.932 MB / 465.4 MB, free: 8.848 MB / 382.1 MB Notification: Performance of SimCode: time 0.004791/0.3637, allocations: 3.741 MB / 469.1 MB, free: 5.051 MB / 382.1 MB Notification: Performance of Templates: time 0.03236/0.3961, allocations: 19.52 MB / 488.6 MB, free: 1.629 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe 2>&1)