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.001148/0.001148, allocations: 107 kB / 17.75 MB, free: 5.352 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.001168/0.001168, allocations: 186.5 kB / 18.68 MB, free: 4.426 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 51.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2267, allocations: 49.44 MB / 401.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL): time 0.006265/0.233, allocations: 5.37 MB / 406.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003093/0.2361, allocations: 2.007 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003495/0.2365, allocations: 19.94 kB / 408.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008902/0.2374, allocations: 0.6186 MB / 409.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.2384, allocations: 0.7586 MB / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.2395, allocations: 0.5683 MB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001605/0.2411, allocations: 1.832 MB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006627/0.2417, allocations: 0.5432 MB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.2431, allocations: 1.465 MB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006911/0.2438, allocations: 0.6522 MB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.244, allocations: 132 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.2443, allocations: 167.9 kB / 415.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004014/0.2447, allocations: 0.5165 MB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006119/0.2454, allocations: 0.8073 MB / 416.9 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.2471, allocations: 2.108 MB / 419 MB, free: 7.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2472, allocations: 0 / 419 MB, free: 7.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2472, allocations: 0 / 419 MB, free: 7.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.295e-05/0.2472, allocations: 0 / 419 MB, free: 7.238 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.004346/0.2515, allocations: 2.576 MB / 421.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2516, allocations: 8.031 kB / 421.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.2519, allocations: 223.5 kB / 421.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.2545, allocations: 1.586 MB / 423.4 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/0.2545, allocations: 66 kB / 423.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.2547, allocations: 95.98 kB / 423.6 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.2564, allocations: 0.9883 MB / 424.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.2565, allocations: 11.94 kB / 424.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.369e-05/0.2566, allocations: 36 kB / 424.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.2566, allocations: 20 kB / 424.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.2583, allocations: 0.7884 MB / 425.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.263, allocations: 3.203 MB / 428.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001927/0.2649, allocations: 0.9059 MB / 429.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009409/0.2659, allocations: 442.5 kB / 429.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.899e-05/0.2659, allocations: 20.56 kB / 430 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.2671, allocations: 0.6337 MB / 430.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.374e-06/0.2671, allocations: 4 kB / 430.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.003371/0.2705, allocations: 1.52 MB / 432.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/0.2706, allocations: 179.2 kB / 432.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.2725, allocations: 1.81 MB / 434.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.83e-05/0.2726, allocations: 57.69 kB / 434.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.273, allocations: 0.5619 MB / 434.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.2732, allocations: 279.4 kB / 435 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.2735, allocations: 250.2 kB / 435.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2737, allocations: 341.9 kB / 435.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008063/0.2745, allocations: 380.6 kB / 436 MB, free: 5.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009432/0.2754, allocations: 0.6339 MB / 436.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.2771, allocations: 0.9941 MB / 437.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.2771, allocations: 4 kB / 437.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002172/0.2793, allocations: 1.217 MB / 438.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.2794, allocations: 33.7 kB / 438.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.2794, allocations: 8 kB / 438.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003043/0.2797, allocations: 88.81 kB / 438.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007677/0.2805, allocations: 199.7 kB / 439.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.2823, allocations: 1.994 MB / 441.1 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007494/0.283, allocations: 131.4 kB / 441.2 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.2831, allocations: 39.94 kB / 441.3 MB, free: 176 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001272/0.2844, allocations: 0.8532 MB / 442.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008587/0.2853, allocations: 0.6029 MB / 442.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001513/0.2868, allocations: 0.9748 MB / 443.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.546e-06/0.2868, allocations: 0 / 443.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=121) (initialization_lambda0): time 0.002025/0.2888, allocations: 1.182 MB / 444.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.2889, allocations: 37.69 kB / 444.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2889, allocations: 8 kB / 444.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002168/0.2891, allocations: 84.81 kB / 445 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007059/0.2898, allocations: 187.6 kB / 445.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001708/0.2916, allocations: 1.994 MB / 447.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007456/0.2923, allocations: 123.4 kB / 447.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-05/0.2924, allocations: 43.98 kB / 447.4 MB, free: 9.703 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.0002704/0.2927, allocations: 272.8 kB / 447.6 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.2929, allocations: 190.8 kB / 447.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/0.2951, allocations: 1.11 MB / 448.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.2951, allocations: 3.984 kB / 448.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2951, allocations: 0 / 448.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006199/0.2958, allocations: 483.5 kB / 449.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.2959, allocations: 23.98 kB / 449.4 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/0.2966, allocations: 80.12 kB / 449.5 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.2968, allocations: 72.89 kB / 449.6 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002713/0.2995, allocations: 1.251 MB / 450.8 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002827/0.3023, allocations: 1.798 MB / 452.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008241/0.3031, allocations: 463.6 kB / 453.1 MB, free: 3.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001446/0.3046, allocations: 1.268 MB / 454.3 MB, free: 2.633 MB / 366.1 MB Notification: Performance of Backend: time 4.3e-07/0.3046, allocations: 0 / 454.3 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003884/0.3085, allocations: 1.921 MB / 456.3 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of SimCode: time 0.004371/0.3129, allocations: 3.803 MB / 460.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of Templates: time 0.03151/0.3444, allocations: 19.08 MB / 479.1 MB, free: 9.996 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)