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.0009587/0.0009588, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008993/0.0008993, allocations: 98.86 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.413e-05/1.415e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08787, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3292/0.4172, allocations: 90.15 MB / 477.6 MB, free: 4.672 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4175, allocations: 83.95 kB / 477.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06008/0.4776, allocations: 22.06 MB / 499.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4776, allocations: 0 / 499.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001143/0.4778, allocations: 36 kB / 499.8 MB, free: 14.41 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.003087/0.4809, allocations: 1.819 MB / 0.4899 GB, free: 12.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4809, allocations: 16.03 kB / 0.4899 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003386/0.4813, allocations: 217.4 kB / 0.4901 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.483, allocations: 1.078 MB / 0.4911 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/0.4831, allocations: 31.98 kB / 0.4912 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.4832, allocations: 59.92 kB / 0.4912 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001204/0.4844, allocations: 0.7223 MB / 0.4919 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.4858, allocations: 0.8206 MB / 0.4927 GB, free: 9.516 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.4858, allocations: 15.77 kB / 0.4927 GB, free: 9.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.513e-05/0.4859, allocations: 8 kB / 0.4928 GB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.4859, allocations: 16 kB / 0.4928 GB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005351/0.4913, allocations: 3.292 MB / 0.496 GB, free: 6.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.4928, allocations: 0.9288 MB / 0.4969 GB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006593/0.4935, allocations: 403 kB / 0.4973 GB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.309e-05/0.4936, allocations: 20.75 kB / 0.4973 GB, free: 4.754 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008545/0.4944, allocations: 0.5901 MB / 0.4979 GB, free: 4.145 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.515e-06/0.4945, allocations: 4 kB / 0.4979 GB, free: 4.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001586/0.496, allocations: 0.9517 MB / 0.4988 GB, free: 3.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/0.4961, allocations: 196.7 kB / 0.499 GB, free: 2.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.4986, allocations: 1.818 MB / 0.5008 GB, free: 1.125 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.298e-05/0.4987, allocations: 41.69 kB / 0.5008 GB, free: 1.078 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.4991, allocations: 0.5494 MB / 0.5013 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.4993, allocations: 248.4 kB / 0.5016 GB, free: 280 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.4994, allocations: 4 kB / 0.5016 GB, free: 276 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.4995, allocations: 345.9 kB / 0.5019 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/0.5, allocations: 334.5 kB / 0.5022 GB, free: 15.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006289/0.5007, allocations: 0.5848 MB / 0.5028 GB, free: 14.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005595/0.5012, allocations: 392.2 kB / 0.5032 GB, free: 14.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.5012, allocations: 4 kB / 0.5032 GB, free: 14.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001551/0.5028, allocations: 1.043 MB / 0.5042 GB, free: 13.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009055/0.5037, allocations: 2.932 MB / 0.5071 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.5037, allocations: 8 kB / 0.5071 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003223/0.5041, allocations: 92.81 kB / 0.5072 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009303/0.505, allocations: 243.6 kB / 0.5074 GB, free: 9.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/0.5068, allocations: 1.806 MB / 0.5092 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.5078, allocations: 203.1 kB / 0.5093 GB, free: 7.852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-05/0.5079, allocations: 36 kB / 0.5094 GB, free: 7.816 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.935e-06/0.5079, allocations: 4.188 kB / 0.5094 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00136/0.5093, allocations: 0.901 MB / 0.5103 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5093, allocations: 12.81 kB / 0.5103 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002194/0.5096, allocations: 92.81 kB / 0.5104 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008312/0.5104, allocations: 231.6 kB / 0.5106 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.512, allocations: 1.802 MB / 0.5123 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000947/0.5129, allocations: 179.2 kB / 0.5125 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/0.513, allocations: 43.98 kB / 0.5126 GB, free: 4.434 MB / 394.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 () * 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.0002581/0.5133, allocations: 155.8 kB / 0.5127 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.5135, allocations: 177.8 kB / 0.5129 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/0.5154, allocations: 1.027 MB / 0.5139 GB, free: 3.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.5154, allocations: 8 kB / 0.5139 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.5154, allocations: 0 / 0.5139 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.5154, allocations: 3.984 kB / 0.5139 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003619/0.5191, allocations: 2.498 MB / 0.5163 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.5191, allocations: 7.938 kB / 0.5163 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007089/0.5198, allocations: 155.8 kB / 0.5165 GB, free: 352 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.52, allocations: 84.75 kB / 0.5166 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.168e-05/0.5201, allocations: 15.98 kB / 0.5166 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001649/0.5218, allocations: 1.702 MB / 0.5182 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5218, allocations: 4.062 kB / 0.5182 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.5238, allocations: 1.544 MB / 0.5198 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008372/0.5247, allocations: 0.5296 MB / 0.5203 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.5249, allocations: 19.98 kB / 0.5203 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000946/0.5258, allocations: 155.8 kB / 0.5204 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.5261, allocations: 88.64 kB / 0.5205 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.315e-05/0.5261, allocations: 35.92 kB / 0.5206 GB, free: 12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001839/0.528, allocations: 1.416 MB / 0.5219 GB, free: 10.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.528, allocations: 0 / 0.5219 GB, free: 10.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001734/0.5297, allocations: 0.4909 MB / 0.5224 GB, free: 10.1 MB / 410.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) * 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.0008326/0.5306, allocations: 359.5 kB / 0.5228 GB, free: 9.816 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002487/0.5331, allocations: 1.724 MB / 0.5245 GB, free: 8.047 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5331, allocations: 0 / 0.5245 GB, free: 8.047 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007506/0.5338, allocations: 0.5643 MB / 0.525 GB, free: 7.473 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008396/0.5347, allocations: 192.8 kB / 0.5252 GB, free: 7.293 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.5393, allocations: 2.85 MB / 0.528 GB, free: 4.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009823/0.5403, allocations: 1.436 MB / 0.5294 GB, free: 2.938 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001747/0.5421, allocations: 0.6626 MB / 0.53 GB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.5423, allocations: 63.42 kB / 0.5301 GB, free: 2.207 MB / 410.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5423, allocations: 0 / 0.5301 GB, free: 2.207 MB / 410.7 MB Notification: Performance of Templates: time 0.02671/0.569, allocations: 16.44 MB / 0.5461 GB, free: 1.848 MB / 426.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