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.0009872/0.0009872, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.226/1.226, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0008844/0.0008844, allocations: 93.86 kB / 291.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002337, allocations: 11.94 kB / 351.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1988, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3036, allocations: 90.89 MB / 492.4 MB, free: 5.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3039, allocations: 87.95 kB / 492.5 MB, free: 5.488 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2168/0.5207, allocations: 22.31 MB / 0.5027 GB, free: 89.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5208, allocations: 0.5938 kB / 0.5027 GB, free: 89.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001868/0.521, allocations: 37.7 kB / 0.5027 GB, free: 89.79 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.00688/0.5278, allocations: 2.259 MB / 0.505 GB, free: 88.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.5279, allocations: 9.562 kB / 0.505 GB, free: 88.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006454/0.5286, allocations: 214 kB / 0.5052 GB, free: 88.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003506/0.5321, allocations: 1.188 MB / 0.5063 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.5322, allocations: 65.16 kB / 0.5064 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002654/0.5325, allocations: 90.31 kB / 0.5065 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.5347, allocations: 1.044 MB / 0.5075 GB, free: 88.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.5348, allocations: 8.547 kB / 0.5075 GB, free: 88.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.04e-05/0.5348, allocations: 39.89 kB / 0.5075 GB, free: 88.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.5349, allocations: 20 kB / 0.5076 GB, free: 88.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002334/0.5372, allocations: 0.97 MB / 0.5085 GB, free: 88.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008865/0.5461, allocations: 3.45 MB / 0.5119 GB, free: 87.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00327/0.5494, allocations: 1.141 MB / 0.513 GB, free: 87.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.895e-05/0.5495, allocations: 13.61 kB / 0.513 GB, free: 87.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001776/0.5513, allocations: 0.7127 MB / 0.5137 GB, free: 87.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.048e-06/0.5514, allocations: 3.812 kB / 0.5137 GB, free: 87.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.00551/0.5569, allocations: 1.78 MB / 0.5154 GB, free: 86.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.557, allocations: 175.6 kB / 0.5156 GB, free: 86.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005276/0.5623, allocations: 2.022 MB / 0.5176 GB, free: 86.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001984/0.5625, allocations: 57.02 kB / 0.5176 GB, free: 86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000564/0.5631, allocations: 0.5594 MB / 0.5182 GB, free: 85.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.5635, allocations: 257.8 kB / 0.5184 GB, free: 85.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.119e-05/0.5636, allocations: 19.97 kB / 0.5184 GB, free: 85.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.5637, allocations: 345.3 kB / 0.5188 GB, free: 85.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.5648, allocations: 458.9 kB / 0.5192 GB, free: 84.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.5661, allocations: 0.7084 MB / 0.5199 GB, free: 84.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.5675, allocations: 0.5198 MB / 0.5204 GB, free: 84.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-06/0.5676, allocations: 6.469 kB / 0.5204 GB, free: 84.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003285/0.5709, allocations: 1.364 MB / 0.5218 GB, free: 83.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005571/0.5714, allocations: 2.841 MB / 0.5245 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.5715, allocations: 10.7 kB / 0.5245 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/0.5719, allocations: 102.8 kB / 0.5246 GB, free: 80.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.5731, allocations: 246.3 kB / 0.5249 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.5752, allocations: 1.889 MB / 0.5267 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.577, allocations: 221.8 kB / 0.5269 GB, free: 79.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.5771, allocations: 39 kB / 0.527 GB, free: 79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.5771, allocations: 6.344 kB / 0.527 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002637/0.5797, allocations: 1.179 MB / 0.5281 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.5798, allocations: 12.62 kB / 0.5281 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.5801, allocations: 94.98 kB / 0.5282 GB, free: 78.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.5812, allocations: 225.4 kB / 0.5284 GB, free: 78.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.5832, allocations: 1.892 MB / 0.5303 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.5849, allocations: 206.5 kB / 0.5305 GB, free: 76.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.585, allocations: 46.64 kB / 0.5305 GB, free: 76.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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.001286/0.5863, allocations: 0.6595 MB / 0.5312 GB, free: 76.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005517/0.5869, allocations: 181.8 kB / 0.5313 GB, free: 75.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003611/0.5905, allocations: 1.3 MB / 0.5326 GB, free: 74.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.5905, allocations: 11.89 kB / 0.5326 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5905, allocations: 0 / 0.5326 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.5905, allocations: 3.516 kB / 0.5326 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006995/0.5976, allocations: 2.722 MB / 0.5353 GB, free: 72.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.5976, allocations: 0 / 0.5353 GB, free: 72.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.5986, allocations: 157.8 kB / 0.5354 GB, free: 72.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003846/0.5991, allocations: 89.95 kB / 0.5355 GB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.922e-05/0.5992, allocations: 23.42 kB / 0.5355 GB, free: 72.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002205/0.6014, allocations: 1.799 MB / 0.5373 GB, free: 70.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6014, allocations: 4.062 kB / 0.5373 GB, free: 70.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00467/0.6061, allocations: 1.896 MB / 0.5392 GB, free: 68.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/0.6078, allocations: 0.534 MB / 0.5397 GB, free: 68.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004544/0.6082, allocations: 27.89 kB / 0.5397 GB, free: 68.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.6099, allocations: 168.1 kB / 0.5399 GB, free: 68.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002904/0.6102, allocations: 98.7 kB / 0.54 GB, free: 68.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.244e-05/0.6103, allocations: 31.19 kB / 0.54 GB, free: 68.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003992/0.6143, allocations: 1.62 MB / 0.5416 GB, free: 66.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6143, allocations: 0 / 0.5416 GB, free: 66.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003562/0.6179, allocations: 0.5488 MB / 0.5421 GB, free: 66.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.001337/0.6193, allocations: 426.1 kB / 0.5425 GB, free: 66.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004756/0.6241, allocations: 2.065 MB / 0.5445 GB, free: 64.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.6241, allocations: 5.688 kB / 0.5445 GB, free: 64.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.6257, allocations: 0.6765 MB / 0.5452 GB, free: 63.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/0.6272, allocations: 201 kB / 0.5454 GB, free: 63.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008142/0.6354, allocations: 4.136 MB / 0.5494 GB, free: 59.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.6369, allocations: 1.437 MB / 0.5508 GB, free: 58.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001713/0.6386, allocations: 337.8 kB / 0.5512 GB, free: 58.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004829/0.6391, allocations: 83.42 kB / 0.5512 GB, free: 57.97 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6391, allocations: 0 / 0.5512 GB, free: 57.97 MB / 378.7 MB Notification: Performance of Templates: time 0.03581/0.675, allocations: 16.32 MB / 0.5672 GB, free: 41.86 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/jenkins/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