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: 111 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001466/0.001466, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2487, allocations: 50.55 MB / 410 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R): time 0.006318/0.255, allocations: 5.351 MB / 415.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003629/0.2587, allocations: 2.268 MB / 417.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004487/0.2591, allocations: 23.88 kB / 417.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008958/0.2601, allocations: 0.6264 MB / 418.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.2612, allocations: 0.7897 MB / 419 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.2624, allocations: 0.6041 MB / 419.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.2641, allocations: 1.856 MB / 421.5 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000716/0.2649, allocations: 0.5547 MB / 422.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001557/0.2664, allocations: 1.472 MB / 423.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006963/0.2671, allocations: 0.6521 MB / 424.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.2674, allocations: 136 kB / 424.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.2677, allocations: 183.9 kB / 424.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004662/0.2682, allocations: 0.5165 MB / 425 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006985/0.2689, allocations: 0.8034 MB / 425.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.2707, allocations: 2.13 MB / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2708, allocations: 0 / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2708, allocations: 0 / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.759e-05/0.2708, allocations: 0 / 427.9 MB, free: 15.55 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.00473/0.2755, allocations: 2.552 MB / 430.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2756, allocations: 8.031 kB / 430.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000781/0.2764, allocations: 262.2 kB / 430.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/0.2792, allocations: 1.597 MB / 432.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.34e-05/0.2793, allocations: 69.98 kB / 432.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.2794, allocations: 92 kB / 432.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.2812, allocations: 0.9727 MB / 433.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.2813, allocations: 11.91 kB / 433.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.623e-05/0.2814, allocations: 35.98 kB / 433.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.2814, allocations: 19.94 kB / 433.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.2831, allocations: 0.7767 MB / 434.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005044/0.2882, allocations: 3.18 MB / 437.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/0.2902, allocations: 0.9182 MB / 438.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.2913, allocations: 434.5 kB / 438.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.134e-05/0.2913, allocations: 12.64 kB / 438.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001587/0.2929, allocations: 0.6287 MB / 439.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 3.366e-06/0.293, allocations: 0 / 439.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.003956/0.2969, allocations: 1.524 MB / 441 MB, free: 2.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.972e-05/0.297, allocations: 174.8 kB / 441.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/0.2991, allocations: 1.861 MB / 443.1 MB, free: 24 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.2992, allocations: 61.69 kB / 443.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004475/0.2996, allocations: 0.5811 MB / 443.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.2999, allocations: 260.3 kB / 443.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/0.3002, allocations: 241.9 kB / 444.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3003, allocations: 341.9 kB / 444.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008185/0.3011, allocations: 376.6 kB / 444.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009736/0.3021, allocations: 0.6261 MB / 445.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001692/0.3038, allocations: 0.9861 MB / 446.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.3038, allocations: 4 kB / 446.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002315/0.3062, allocations: 1.201 MB / 447.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.358e-05/0.3062, allocations: 41.69 kB / 447.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.3062, allocations: 8 kB / 447.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/0.3066, allocations: 96.75 kB / 447.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007567/0.3074, allocations: 183.7 kB / 448 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002118/0.3095, allocations: 2.131 MB / 450.2 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008193/0.3103, allocations: 131.1 kB / 450.3 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.273e-05/0.3104, allocations: 40.11 kB / 450.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001337/0.3117, allocations: 0.8493 MB / 451.2 MB, free: 7.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009009/0.3127, allocations: 0.6065 MB / 451.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001559/0.3142, allocations: 0.9627 MB / 452.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.657e-06/0.3142, allocations: 0 / 452.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization_lambda0): time 0.0021/0.3163, allocations: 1.169 MB / 453.9 MB, free: 4.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.3164, allocations: 37.69 kB / 453.9 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3164, allocations: 8 kB / 454 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002544/0.3167, allocations: 100.8 kB / 454.1 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007002/0.3174, allocations: 183.6 kB / 454.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.3194, allocations: 2.119 MB / 456.4 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007649/0.3202, allocations: 127.3 kB / 456.5 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.996e-05/0.3202, allocations: 40 kB / 456.5 MB, free: 1.754 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.0002681/0.3205, allocations: 268.2 kB / 456.8 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/0.3207, allocations: 181.8 kB / 457 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.3231, allocations: 1.11 MB / 458.1 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3231, allocations: 3.984 kB / 458.1 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3231, allocations: 0 / 458.1 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007017/0.3238, allocations: 478.2 kB / 458.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.324, allocations: 27.98 kB / 458.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006757/0.3247, allocations: 79.91 kB / 458.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.3249, allocations: 72.56 kB / 458.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002793/0.3277, allocations: 1.219 MB / 459.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002966/0.3306, allocations: 1.767 MB / 461.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008363/0.3315, allocations: 452.8 kB / 462.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001473/0.333, allocations: 1.305 MB / 463.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of Backend: time 2.2e-07/0.333, allocations: 0 / 463.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004083/0.3371, allocations: 1.94 MB / 465.4 MB, free: 8.871 MB / 382.1 MB Notification: Performance of SimCode: time 0.004543/0.3416, allocations: 3.738 MB / 469.1 MB, free: 5.086 MB / 382.1 MB Notification: Performance of Templates: time 0.04373/0.3854, allocations: 19.51 MB / 488.6 MB, free: 1.668 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)