Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 226.5 MB / 245.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000746/0.000746, allocations: 95.89 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001957/0.0001958, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1767, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09392/0.2706, allocations: 92.35 MB / 0.4893 GB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.2709, allocations: 93.72 kB / 0.4894 GB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2117/0.4826, allocations: 23.64 MB / 0.5125 GB, free: 89.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4826, allocations: 0 / 0.5125 GB, free: 89.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.409e-05/0.4827, allocations: 43.22 kB / 0.5125 GB, free: 89.9 MB / 378.7 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.003331/0.4861, allocations: 2.308 MB / 0.5148 GB, free: 88.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.4861, allocations: 11.53 kB / 0.5148 GB, free: 88.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006381/0.4868, allocations: 285.8 kB / 0.515 GB, free: 88.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/0.4886, allocations: 1.289 MB / 0.5163 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/0.4886, allocations: 68.75 kB / 0.5164 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.4888, allocations: 95.23 kB / 0.5164 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.4903, allocations: 1.079 MB / 0.5175 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.4904, allocations: 7.844 kB / 0.5175 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.614e-05/0.4905, allocations: 38.31 kB / 0.5175 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.4905, allocations: 16.41 kB / 0.5176 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.4921, allocations: 0.9787 MB / 0.5185 GB, free: 87.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004394/0.4966, allocations: 3.573 MB / 0.522 GB, free: 85.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.4984, allocations: 1.149 MB / 0.5231 GB, free: 85.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009505/0.4994, allocations: 0.5216 MB / 0.5236 GB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.609e-05/0.4994, allocations: 22.58 kB / 0.5237 GB, free: 85.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001002/0.5005, allocations: 0.7265 MB / 0.5244 GB, free: 84.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.395e-06/0.5005, allocations: 0 / 0.5244 GB, free: 84.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.003024/0.5035, allocations: 1.786 MB / 0.5261 GB, free: 84.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.5036, allocations: 200 kB / 0.5263 GB, free: 84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002486/0.5061, allocations: 2.295 MB / 0.5285 GB, free: 82.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.818e-05/0.5061, allocations: 53.69 kB / 0.5286 GB, free: 82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002897/0.5064, allocations: 0.5807 MB / 0.5292 GB, free: 81.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.5066, allocations: 275.2 kB / 0.5294 GB, free: 81.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.997e-05/0.5066, allocations: 20 kB / 0.5294 GB, free: 81.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.128e-05/0.5067, allocations: 345.9 kB / 0.5298 GB, free: 80.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000766/0.5075, allocations: 461.7 kB / 0.5302 GB, free: 80.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008059/0.5083, allocations: 0.7246 MB / 0.5309 GB, free: 79.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.5098, allocations: 1.163 MB / 0.5321 GB, free: 78.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.5098, allocations: 0 / 0.5321 GB, free: 78.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001971/0.5118, allocations: 1.396 MB / 0.5334 GB, free: 76.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.786e-05/0.5119, allocations: 337.4 kB / 0.5337 GB, free: 76.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.5119, allocations: 8 kB / 0.5338 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.5121, allocations: 96.8 kB / 0.5338 GB, free: 76.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007819/0.5129, allocations: 255.6 kB / 0.5341 GB, free: 76.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.5142, allocations: 1.823 MB / 0.5359 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008783/0.5151, allocations: 215.1 kB / 0.5361 GB, free: 73.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/0.5152, allocations: 43.98 kB / 0.5361 GB, free: 73.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.02e-06/0.5152, allocations: 4 kB / 0.5361 GB, free: 73.82 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00172/0.5169, allocations: 1.199 MB / 0.5373 GB, free: 72.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.5169, allocations: 12 kB / 0.5373 GB, free: 72.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/0.5171, allocations: 84.81 kB / 0.5374 GB, free: 72.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007322/0.5179, allocations: 235.6 kB / 0.5376 GB, free: 72.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.5191, allocations: 1.829 MB / 0.5394 GB, free: 70.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008198/0.5199, allocations: 203.2 kB / 0.5396 GB, free: 70.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.52, allocations: 39.98 kB / 0.5396 GB, free: 70.09 MB / 378.7 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 ($PRE.meanPower.y_last,meanPower.y_last,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.iH01.mean1.y_last,iH01.mean1.y_last,$PRE.iH01.mean2.y_last,iH01.mean2.y_last,$PRE.iRMS.mean.y_last,iRMS.mean.y_last,$PRE.vH01.mean1.y_last,vH01.mean1.y_last,$PRE.vH01.mean2.y_last,vH01.mean2.y_last,$PRE.vRMS.mean.y_last,vRMS.mean.y_last,$whenCondition10,$whenCondition9,$whenCondition8,$PRE.triac.thyristor1.off,triac.thyristor1.off,$PRE.triac.thyristor2.off,triac.thyristor2.off,adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$PRE.adaptor.timerPositive[1].entryTime,adaptor.timerPositive[1].entryTime,$PRE.adaptor.timerNegative[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007034/0.5207, allocations: 0.672 MB / 0.5403 GB, free: 69.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.5209, allocations: 186 kB / 0.5405 GB, free: 69.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.523, allocations: 1.302 MB / 0.5417 GB, free: 67.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.523, allocations: 11.94 kB / 0.5417 GB, free: 67.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.523, allocations: 0 / 0.5417 GB, free: 67.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.523, allocations: 11.91 kB / 0.5418 GB, free: 67.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/0.5266, allocations: 2.914 MB / 0.5446 GB, free: 64.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.5266, allocations: 0 / 0.5446 GB, free: 64.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006693/0.5273, allocations: 163.8 kB / 0.5448 GB, free: 64.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001908/0.5275, allocations: 80.81 kB / 0.5448 GB, free: 64.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.165e-05/0.5276, allocations: 23.98 kB / 0.5449 GB, free: 64.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.5288, allocations: 1.819 MB / 0.5466 GB, free: 62.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5288, allocations: 0 / 0.5466 GB, free: 62.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.5315, allocations: 1.931 MB / 0.5485 GB, free: 60.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.5322, allocations: 0.5296 MB / 0.549 GB, free: 60.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.5324, allocations: 31.98 kB / 0.5491 GB, free: 60.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008194/0.5332, allocations: 163.8 kB / 0.5492 GB, free: 60.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.5334, allocations: 96.84 kB / 0.5493 GB, free: 59.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.5334, allocations: 31.98 kB / 0.5493 GB, free: 59.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001861/0.5353, allocations: 1.656 MB / 0.551 GB, free: 58.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5353, allocations: 0 / 0.551 GB, free: 58.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001332/0.5366, allocations: 0.5611 MB / 0.5515 GB, free: 57.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (adaptor.filter[1].firstOrder.y,adaptor.filter[1].transferFunction[1].x_scaled[1],adaptor.filter[1].transferFunction[2].x_scaled[1],meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,loadInductor.i) * Number of discrete variables: 27 (adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,triac.thyristor1.off,triac.thyristor2.off,adaptor.timerPositive[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],trapezoid.T_start,trapezoid.count,meanPower.y_last,vRMS.mean.y_last,vH01.mean1.y_last,vH01.mean2.y_last,iRMS.mean.y_last,iH01.mean1.y_last,iH01.mean2.y_last) * Number of discrete states: 10 (trapezoid.count,meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,triac.thyristor2.off,triac.thyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000744/0.5374, allocations: 445 kB / 0.5519 GB, free: 57.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002854/0.5403, allocations: 2.082 MB / 0.554 GB, free: 55.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.5403, allocations: 4.438 kB / 0.554 GB, free: 55.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009736/0.5413, allocations: 0.7041 MB / 0.5547 GB, free: 54.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.5424, allocations: 228.5 kB / 0.5549 GB, free: 54.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004516/0.5469, allocations: 4.362 MB / 0.5591 GB, free: 49.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007146/0.5476, allocations: 1.411 MB / 0.5605 GB, free: 48.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003394/0.548, allocations: 95.41 kB / 0.5606 GB, free: 48.33 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.548, allocations: 0 / 0.5606 GB, free: 48.33 MB / 378.7 MB Notification: Performance of Templates: time 0.02065/0.5686, allocations: 23.38 MB / 0.5834 GB, free: 24.96 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL.pipe 2>&1)