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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009114/0.0009115, allocations: 172.2 kB / 17.39 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 223.3 MB / 241.4 MB, free: 11.6 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007957/0.0007958, allocations: 112 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.000273, allocations: 12 kB / 352.3 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1903, allocations: 50.39 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1043/0.2947, allocations: 91 MB / 493.7 MB, free: 5.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.295, allocations: 83.95 kB / 493.8 MB, free: 5.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.23/0.525, allocations: 22.31 MB / 0.504 GB, free: 89.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.525, allocations: 0 / 0.504 GB, free: 89.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000144/0.5252, allocations: 41.05 kB / 0.5041 GB, free: 89.72 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.004502/0.5297, allocations: 2.236 MB / 0.5063 GB, free: 88.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.5297, allocations: 8.75 kB / 0.5063 GB, free: 88.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004327/0.5302, allocations: 214.8 kB / 0.5065 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.5324, allocations: 1.264 MB / 0.5077 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.5324, allocations: 66.31 kB / 0.5078 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.5326, allocations: 88.19 kB / 0.5079 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.5344, allocations: 1.059 MB / 0.5089 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.5345, allocations: 3.312 kB / 0.5089 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.809e-05/0.5346, allocations: 40.91 kB / 0.5089 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.5346, allocations: 16.97 kB / 0.5089 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.5362, allocations: 0.9751 MB / 0.5099 GB, free: 87.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004778/0.541, allocations: 3.453 MB / 0.5133 GB, free: 87.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.5428, allocations: 1.126 MB / 0.5144 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008384/0.5437, allocations: 0.5193 MB / 0.5149 GB, free: 87.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.956e-05/0.5437, allocations: 10.48 kB / 0.5149 GB, free: 87.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.5448, allocations: 0.7264 MB / 0.5156 GB, free: 87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.384e-06/0.5448, allocations: 0 / 0.5156 GB, free: 87 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003278/0.5481, allocations: 1.789 MB / 0.5173 GB, free: 86.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.5481, allocations: 199.5 kB / 0.5175 GB, free: 86.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/0.5509, allocations: 2.248 MB / 0.5197 GB, free: 85.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.216e-05/0.551, allocations: 50.2 kB / 0.5198 GB, free: 85.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.5513, allocations: 0.5623 MB / 0.5203 GB, free: 85.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.5515, allocations: 260.4 kB / 0.5206 GB, free: 84.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.5515, allocations: 15.84 kB / 0.5206 GB, free: 84.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.5516, allocations: 345 kB / 0.5209 GB, free: 84.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000741/0.5523, allocations: 454.3 kB / 0.5214 GB, free: 84.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008206/0.5532, allocations: 0.7166 MB / 0.5221 GB, free: 83.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.5547, allocations: 1.153 MB / 0.5232 GB, free: 83.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5547, allocations: 3.719 kB / 0.5232 GB, free: 83.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001996/0.5567, allocations: 1.367 MB / 0.5245 GB, free: 82.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.5568, allocations: 337.4 kB / 0.5248 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.5568, allocations: 6.844 kB / 0.5248 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.5571, allocations: 113.7 kB / 0.525 GB, free: 82.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008053/0.5579, allocations: 237.3 kB / 0.5252 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.5593, allocations: 1.88 MB / 0.527 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.5604, allocations: 221.1 kB / 0.5272 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.028e-05/0.5604, allocations: 41.69 kB / 0.5273 GB, free: 80.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-06/0.5604, allocations: 2.562 kB / 0.5273 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001706/0.5622, allocations: 1.183 MB / 0.5284 GB, free: 80.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.5622, allocations: 8 kB / 0.5284 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/0.5624, allocations: 102 kB / 0.5285 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006977/0.5631, allocations: 228.1 kB / 0.5287 GB, free: 79.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.5643, allocations: 1.869 MB / 0.5306 GB, free: 77.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008384/0.5652, allocations: 202.7 kB / 0.5308 GB, free: 77.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/0.5653, allocations: 43.28 kB / 0.5308 GB, free: 77.79 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 (110): * Single equations (assignments): 108 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0007938/0.5661, allocations: 0.6589 MB / 0.5314 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.5663, allocations: 184.9 kB / 0.5316 GB, free: 77.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/0.5683, allocations: 1.298 MB / 0.5329 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.5684, allocations: 8 kB / 0.5329 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.5684, allocations: 0 / 0.5329 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.5684, allocations: 3.844 kB / 0.5329 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.5719, allocations: 2.873 MB / 0.5357 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.5719, allocations: 3.938 kB / 0.5357 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006178/0.5726, allocations: 155.7 kB / 0.5359 GB, free: 73.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/0.5728, allocations: 85.31 kB / 0.5359 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-05/0.5728, allocations: 31.16 kB / 0.536 GB, free: 73.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.5741, allocations: 1.784 MB / 0.5377 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5741, allocations: 0 / 0.5377 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.5768, allocations: 1.894 MB / 0.5396 GB, free: 69.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006682/0.5774, allocations: 0.5293 MB / 0.5401 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.5776, allocations: 39.61 kB / 0.5401 GB, free: 69.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008401/0.5785, allocations: 160.4 kB / 0.5403 GB, free: 69.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.5786, allocations: 94.03 kB / 0.5404 GB, free: 69.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.988e-05/0.5787, allocations: 30.38 kB / 0.5404 GB, free: 69.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00184/0.5806, allocations: 1.627 MB / 0.542 GB, free: 67.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5806, allocations: 0 / 0.542 GB, free: 67.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001283/0.5819, allocations: 0.5524 MB / 0.5425 GB, free: 67.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (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) * 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.thyristor1.off,triac.thyristor2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 63 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007427/0.5826, allocations: 417.6 kB / 0.5429 GB, free: 67.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002809/0.5854, allocations: 2.07 MB / 0.5449 GB, free: 65.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5854, allocations: 0 / 0.5449 GB, free: 65.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009264/0.5864, allocations: 0.6948 MB / 0.5456 GB, free: 64.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.5875, allocations: 205.5 kB / 0.5458 GB, free: 64.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.592, allocations: 4.151 MB / 0.5499 GB, free: 60.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/0.5928, allocations: 1.403 MB / 0.5512 GB, free: 59.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000868/0.5936, allocations: 336 kB / 0.5516 GB, free: 58.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.5939, allocations: 83.42 kB / 0.5516 GB, free: 58.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5939, allocations: 0 / 0.5516 GB, free: 58.68 MB / 378.7 MB Notification: Performance of Templates: time 0.02157/0.6155, allocations: 16.53 MB / 0.5678 GB, free: 42.35 MB / 378.7 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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/ACAC/Dimmer_R/Dimmer_R.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches