Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.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_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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 110.2 kB / 17.75 MB, free: 5.336 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.001118/0.001118, allocations: 185.4 kB / 18.67 MB, free: 4.418 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 43.92 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.221, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R): time 0.006043/0.227, allocations: 5.266 MB / 406.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002894/0.2299, allocations: 1.999 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000303/0.2303, allocations: 23.94 kB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008254/0.2311, allocations: 0.6147 MB / 409.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009476/0.2321, allocations: 0.7431 MB / 410.1 MB, free: 188 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009587/0.233, allocations: 0.5762 MB / 410.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.2346, allocations: 1.805 MB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007007/0.2353, allocations: 0.543 MB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.2366, allocations: 1.461 MB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006955/0.2373, allocations: 0.6443 MB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.2375, allocations: 132 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00028/0.2378, allocations: 160 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004065/0.2382, allocations: 0.5126 MB / 415.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006103/0.2388, allocations: 0.784 MB / 416.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.2404, allocations: 2.072 MB / 418.8 MB, free: 7.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2405, allocations: 0 / 418.8 MB, free: 7.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2405, allocations: 8 kB / 418.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.2405, allocations: 0 / 418.8 MB, free: 7.438 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.004305/0.2448, allocations: 2.478 MB / 421.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.2449, allocations: 12.03 kB / 421.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003012/0.2452, allocations: 218.3 kB / 421.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.2479, allocations: 1.553 MB / 423 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.47e-05/0.2479, allocations: 69.98 kB / 423.1 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.2481, allocations: 88 kB / 423.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/0.2499, allocations: 0.9766 MB / 424.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.2499, allocations: 8 kB / 424.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.615e-05/0.25, allocations: 32 kB / 424.2 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.25, allocations: 16 kB / 424.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.2518, allocations: 0.7806 MB / 425 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.2567, allocations: 3.155 MB / 428.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.2587, allocations: 0.9 MB / 429.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.2597, allocations: 434.5 kB / 429.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.2598, allocations: 16.58 kB / 429.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.261, allocations: 0.6247 MB / 430.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 2.505e-06/0.261, allocations: 0 / 430.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.003637/0.2647, allocations: 1.52 MB / 431.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.2648, allocations: 174.8 kB / 431.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00204/0.2668, allocations: 1.802 MB / 433.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.237e-05/0.2669, allocations: 57.7 kB / 433.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004402/0.2674, allocations: 0.5573 MB / 434.2 MB, free: 7.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.2676, allocations: 252.4 kB / 434.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003799/0.268, allocations: 249.8 kB / 434.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.2681, allocations: 345.9 kB / 435.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008348/0.2689, allocations: 372.6 kB / 435.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.27, allocations: 0.6299 MB / 436.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/0.2718, allocations: 0.9783 MB / 437 MB, free: 4.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2718, allocations: 4 kB / 437 MB, free: 4.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002333/0.2741, allocations: 1.193 MB / 438.2 MB, free: 3.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.2742, allocations: 37.64 kB / 438.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2742, allocations: 8 kB / 438.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003527/0.2746, allocations: 100.8 kB / 438.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.2753, allocations: 187.6 kB / 438.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.2775, allocations: 2.127 MB / 440.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007965/0.2783, allocations: 127.1 kB / 440.8 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.518e-05/0.2784, allocations: 44.05 kB / 440.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001337/0.2797, allocations: 0.8336 MB / 441.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009162/0.2807, allocations: 0.6064 MB / 442.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001564/0.2822, allocations: 0.9589 MB / 443.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.059e-06/0.2823, allocations: 4 kB / 443.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization_lambda0): time 0.002066/0.2843, allocations: 1.162 MB / 444.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.2844, allocations: 33.7 kB / 444.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2844, allocations: 8 kB / 444.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002534/0.2846, allocations: 100.8 kB / 444.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007639/0.2854, allocations: 183.6 kB / 444.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/0.2876, allocations: 2.112 MB / 446.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007744/0.2884, allocations: 123.2 kB / 447 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.015e-05/0.2885, allocations: 43.98 kB / 447 MB, free: 10.03 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.0002809/0.2887, allocations: 260 kB / 447.3 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.289, allocations: 177.8 kB / 447.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.2913, allocations: 1.094 MB / 448.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.2913, allocations: 7.984 kB / 448.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2913, allocations: 4 kB / 448.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006981/0.292, allocations: 478.3 kB / 449 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.2922, allocations: 23.98 kB / 449 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006765/0.2929, allocations: 75.91 kB / 449.1 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.2931, allocations: 68.67 kB / 449.2 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002812/0.2959, allocations: 1.235 MB / 450.4 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002904/0.2988, allocations: 1.766 MB / 452.2 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008234/0.2996, allocations: 452.8 kB / 452.6 MB, free: 4.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001414/0.3011, allocations: 1.272 MB / 453.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of Backend: time 3.31e-07/0.3011, allocations: 0 / 453.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00387/0.305, allocations: 1.911 MB / 455.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of SimCode: time 0.004288/0.3093, allocations: 3.693 MB / 459.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of Templates: time 0.02864/0.3379, allocations: 19.05 MB / 478.5 MB, free: 10.58 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.pipe 2>&1)