Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.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_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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001545, allocations: 113.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001913/0.001913, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 359.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2212, allocations: 50.54 MB / 410 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL): time 0.006462/0.2276, allocations: 5.441 MB / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.2313, allocations: 2.291 MB / 417.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004038/0.2318, allocations: 23.88 kB / 417.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009108/0.2327, allocations: 0.6264 MB / 418.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001082/0.2338, allocations: 0.7896 MB / 419.2 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.2349, allocations: 0.6117 MB / 419.8 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001625/0.2365, allocations: 1.867 MB / 421.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006847/0.2372, allocations: 0.5641 MB / 422.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.2386, allocations: 1.472 MB / 423.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006946/0.2394, allocations: 0.6716 MB / 424.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002114/0.2396, allocations: 136 kB / 424.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003141/0.2399, allocations: 184 kB / 424.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004007/0.2403, allocations: 0.5204 MB / 425.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000628/0.2409, allocations: 0.815 MB / 426 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001827/0.2428, allocations: 2.156 MB / 428.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2428, allocations: 0 / 428.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2428, allocations: 3.938 kB / 428.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.2428, allocations: 0 / 428.1 MB, free: 15.28 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.004455/0.2473, allocations: 2.569 MB / 430.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2473, allocations: 8.031 kB / 430.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007358/0.2481, allocations: 270.2 kB / 431 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002766/0.2508, allocations: 1.601 MB / 432.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.323e-05/0.2509, allocations: 73.92 kB / 432.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.2511, allocations: 99.98 kB / 432.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.2528, allocations: 1.004 MB / 433.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.2528, allocations: 0 / 433.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.779e-05/0.2529, allocations: 35.98 kB / 433.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.253, allocations: 20 kB / 433.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.2547, allocations: 0.7923 MB / 434.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.2595, allocations: 3.227 MB / 437.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.2615, allocations: 0.9218 MB / 438.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009386/0.2625, allocations: 443.1 kB / 439.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.151e-05/0.2626, allocations: 16.64 kB / 439.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.2637, allocations: 0.6298 MB / 439.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 4.088e-06/0.2637, allocations: 4 kB / 439.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.003343/0.2671, allocations: 1.519 MB / 441.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.2672, allocations: 179.2 kB / 441.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002058/0.2692, allocations: 1.865 MB / 443.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.63e-05/0.2693, allocations: 61.69 kB / 443.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004591/0.2698, allocations: 0.585 MB / 444 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.27, allocations: 260.3 kB / 444.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003107/0.2703, allocations: 245.9 kB / 444.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2705, allocations: 341.9 kB / 444.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008567/0.2713, allocations: 388.6 kB / 445.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009639/0.2723, allocations: 0.6262 MB / 445.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.274, allocations: 1.006 MB / 446.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.274, allocations: 0 / 446.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002264/0.2763, allocations: 1.213 MB / 448.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.2763, allocations: 36.36 kB / 448.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.2764, allocations: 8.125 kB / 448.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002907/0.2766, allocations: 88.81 kB / 448.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/0.2775, allocations: 203.6 kB / 448.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001874/0.2794, allocations: 1.994 MB / 450.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008086/0.2802, allocations: 123.1 kB / 450.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/0.2803, allocations: 43.98 kB / 450.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00132/0.2816, allocations: 0.8571 MB / 451.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008898/0.2825, allocations: 0.6106 MB / 452.1 MB, free: 6.426 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001562/0.2841, allocations: 0.9668 MB / 453 MB, free: 5.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.078e-06/0.2841, allocations: 0 / 453 MB, free: 5.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=121) (initialization_lambda0): time 0.002081/0.2862, allocations: 1.19 MB / 454.2 MB, free: 4.148 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.2862, allocations: 33.7 kB / 454.2 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2862, allocations: 12 kB / 454.3 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002525/0.2865, allocations: 88.81 kB / 454.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007485/0.2872, allocations: 191.6 kB / 454.5 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.289, allocations: 1.988 MB / 456.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008103/0.2898, allocations: 127.4 kB / 456.6 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.399e-05/0.2899, allocations: 39.98 kB / 456.7 MB, free: 1.535 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.0002826/0.2902, allocations: 271.9 kB / 456.9 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.2904, allocations: 193.6 kB / 457.1 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002378/0.2928, allocations: 1.111 MB / 458.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.2929, allocations: 7.984 kB / 458.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2929, allocations: 0 / 458.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007624/0.2936, allocations: 482.2 kB / 458.7 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.2938, allocations: 27.98 kB / 458.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.2945, allocations: 83.84 kB / 458.8 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.2947, allocations: 68.91 kB / 458.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002888/0.2975, allocations: 1.247 MB / 460.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002869/0.3004, allocations: 1.786 MB / 461.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008377/0.3013, allocations: 459.7 kB / 462.4 MB, free: 11.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001589/0.3029, allocations: 1.309 MB / 463.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of Backend: time 5.61e-07/0.3029, allocations: 0 / 463.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004065/0.307, allocations: 1.926 MB / 465.6 MB, free: 8.586 MB / 382.1 MB Notification: Performance of SimCode: time 0.004644/0.3116, allocations: 3.82 MB / 469.4 MB, free: 4.703 MB / 382.1 MB Notification: Performance of Templates: time 0.03089/0.3425, allocations: 19.55 MB / 489 MB, free: 1.246 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe 2>&1)