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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009837/0.0009838, allocations: 185.2 kB / 8.135 MB, free: 2.191 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.193/1.193, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009335/0.0009335, allocations: 95.8 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/6.953e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2266, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09653/0.3232, allocations: 90.08 MB / 477 MB, free: 12.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.3235, allocations: 84.95 kB / 477.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.06132/0.3848, allocations: 21.65 MB / 498.7 MB, free: 6.945 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001632/0.385, allocations: 36 kB / 498.8 MB, free: 6.91 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.004308/0.3894, allocations: 1.811 MB / 0.4888 GB, free: 5.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3894, allocations: 8.031 kB / 0.4888 GB, free: 5.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000631/0.3901, allocations: 209.4 kB / 0.489 GB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.3926, allocations: 1.086 MB / 0.4901 GB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.661e-05/0.3926, allocations: 24 kB / 0.4901 GB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000231/0.3929, allocations: 63.89 kB / 0.4902 GB, free: 3.602 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001483/0.3944, allocations: 0.7425 MB / 0.4909 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.3959, allocations: 0.8401 MB / 0.4917 GB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.396, allocations: 0 / 0.4917 GB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.751e-05/0.3961, allocations: 7.984 kB / 0.4917 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.3961, allocations: 20 kB / 0.4918 GB, free: 1.969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1281/0.5242, allocations: 3.268 MB / 0.4949 GB, free: 126.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.5257, allocations: 0.8789 MB / 0.4958 GB, free: 126.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006268/0.5263, allocations: 425.2 kB / 0.4962 GB, free: 126.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.459e-05/0.5264, allocations: 15.27 kB / 0.4962 GB, free: 126.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007723/0.5272, allocations: 0.5327 MB / 0.4967 GB, free: 126.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.667e-06/0.5272, allocations: 0 / 0.4967 GB, free: 126.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001602/0.5288, allocations: 0.936 MB / 0.4977 GB, free: 126.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.5289, allocations: 205.1 kB / 0.4979 GB, free: 126.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.5316, allocations: 1.832 MB / 0.4996 GB, free: 126 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.882e-05/0.5317, allocations: 38.86 kB / 0.4997 GB, free: 126 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.5319, allocations: 354.7 kB / 0.5 GB, free: 125.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.5321, allocations: 249.2 kB / 0.5003 GB, free: 125.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.5322, allocations: 3.938 kB / 0.5003 GB, free: 125.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.702e-05/0.5322, allocations: 338.3 kB / 0.5006 GB, free: 125.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.5327, allocations: 340.2 kB / 0.5009 GB, free: 125.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005363/0.5332, allocations: 0.601 MB / 0.5015 GB, free: 125.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000513/0.5338, allocations: 398.9 kB / 0.5019 GB, free: 125.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.5338, allocations: 3.875 kB / 0.5019 GB, free: 125.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00149/0.5353, allocations: 1.058 MB / 0.5029 GB, free: 125 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004824/0.5358, allocations: 2.893 MB / 0.5057 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.5358, allocations: 10.81 kB / 0.5057 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003236/0.5361, allocations: 97.03 kB / 0.5058 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008849/0.537, allocations: 235.8 kB / 0.5061 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.5384, allocations: 1.674 MB / 0.5077 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.5396, allocations: 182.4 kB / 0.5079 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-05/0.5397, allocations: 36.56 kB / 0.5079 GB, free: 120.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-06/0.5397, allocations: 3.969 kB / 0.5079 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001236/0.541, allocations: 0.9025 MB / 0.5088 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.541, allocations: 7.219 kB / 0.5088 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002204/0.5412, allocations: 94.89 kB / 0.5089 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008098/0.542, allocations: 223.2 kB / 0.5091 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.5433, allocations: 1.666 MB / 0.5107 GB, free: 119.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.5443, allocations: 166.4 kB / 0.5109 GB, free: 119.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.402e-05/0.5444, allocations: 40.42 kB / 0.5109 GB, free: 119.5 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 () * 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.0002117/0.5446, allocations: 149.7 kB / 0.5111 GB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/0.5449, allocations: 173.4 kB / 0.5112 GB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.5466, allocations: 1.024 MB / 0.5122 GB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.5466, allocations: 7.625 kB / 0.5122 GB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.5466, allocations: 3.906 kB / 0.5122 GB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.5466, allocations: 6.422 kB / 0.5123 GB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003335/0.55, allocations: 2.488 MB / 0.5147 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.55, allocations: 3.844 kB / 0.5147 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007259/0.5507, allocations: 157 kB / 0.5148 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002267/0.5509, allocations: 87.16 kB / 0.5149 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.317e-05/0.551, allocations: 18.25 kB / 0.5149 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.5523, allocations: 1.649 MB / 0.5165 GB, free: 117.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5523, allocations: 0 / 0.5165 GB, free: 117.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001771/0.5541, allocations: 1.553 MB / 0.5181 GB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000806/0.5549, allocations: 0.5357 MB / 0.5186 GB, free: 117.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000263/0.5552, allocations: 14.95 kB / 0.5186 GB, free: 117.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009672/0.5561, allocations: 132.7 kB / 0.5187 GB, free: 117.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.5563, allocations: 69.92 kB / 0.5188 GB, free: 117.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-05/0.5564, allocations: 31.7 kB / 0.5188 GB, free: 117.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001961/0.5583, allocations: 1.421 MB / 0.5202 GB, free: 117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001699/0.56, allocations: 0.4909 MB / 0.5207 GB, free: 117 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) * 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.0006974/0.5608, allocations: 319.1 kB / 0.521 GB, free: 116.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.5633, allocations: 1.67 MB / 0.5226 GB, free: 116.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5633, allocations: 1.188 kB / 0.5226 GB, free: 116.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007706/0.5641, allocations: 0.5487 MB / 0.5232 GB, free: 116.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009261/0.565, allocations: 175.6 kB / 0.5233 GB, free: 116.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006089/0.5711, allocations: 2.905 MB / 0.5262 GB, free: 115.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/0.5726, allocations: 1.526 MB / 0.5277 GB, free: 115 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5727, allocations: 2.188 kB / 0.5277 GB, free: 115 MB / 378.7 MB Notification: Performance of Templates: time 0.03601/0.6087, allocations: 22.14 MB / 0.5493 GB, free: 100.7 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