Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_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 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 178.8 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.205/1.205, allocations: 205.2 MB / 214.1 MB, free: 5.242 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009533/0.0009532, allocations: 105.9 kB / 262.1 MB, free: 5.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.183e-06/7.234e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07944/0.07947, allocations: 47.58 MB / 362.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2426/0.3222, allocations: 83.67 MB / 446.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.3224, allocations: 89.89 kB / 446.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02195/0.3444, allocations: 9.289 MB / 455.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.421e-05/0.3445, allocations: 9.969 kB / 455.6 MB, free: 7.152 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.0009904/0.3455, allocations: 0.6771 MB / 456.3 MB, free: 6.613 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.3455, allocations: 7.812 kB / 456.3 MB, free: 6.613 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.511e-05/0.3456, allocations: 54.41 kB / 456.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004585/0.3461, allocations: 373 kB / 456.7 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.3461, allocations: 15.31 kB / 456.7 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.121e-05/0.3462, allocations: 23.12 kB / 456.8 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004239/0.3466, allocations: 275 kB / 457 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005438/0.3472, allocations: 376.7 kB / 457.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.3472, allocations: 5.125 kB / 457.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.3472, allocations: 4.688 kB / 457.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.3473, allocations: 12.12 kB / 457.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.3494, allocations: 1.468 MB / 458.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.3497, allocations: 212.1 kB / 459.1 MB, free: 5.234 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.3499, allocations: 91.73 kB / 459.2 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3499, allocations: 2.656 kB / 459.2 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.3502, allocations: 190 kB / 459.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/0.3502, allocations: 0 / 459.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005287/0.3507, allocations: 260.4 kB / 459.6 MB, free: 5.023 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.3508, allocations: 118.8 kB / 459.7 MB, free: 4.891 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.3511, allocations: 275.3 kB / 460 MB, free: 4.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.3511, allocations: 35.28 kB / 460 MB, free: 4.734 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.961e-05/0.3513, allocations: 211.9 kB / 460.3 MB, free: 4.562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/0.3513, allocations: 77.23 kB / 460.3 MB, free: 4.508 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.3513, allocations: 0 / 460.3 MB, free: 4.508 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.054e-05/0.3514, allocations: 345.3 kB / 460.7 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.3516, allocations: 94.86 kB / 460.8 MB, free: 4.176 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3518, allocations: 244.3 kB / 461 MB, free: 3.977 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.352, allocations: 117.6 kB / 461.1 MB, free: 3.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.352, allocations: 5.125 kB / 461.1 MB, free: 3.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005613/0.3526, allocations: 365.5 kB / 461.5 MB, free: 3.832 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000303/0.3529, allocations: 1.655 MB / 463.1 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3529, allocations: 4.969 kB / 463.1 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002007/0.3531, allocations: 42.97 kB / 463.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.3534, allocations: 70.39 kB / 463.2 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009358/0.3543, allocations: 1.337 MB / 464.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.3547, allocations: 75.34 kB / 464.7 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.3547, allocations: 20.5 kB / 464.7 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.762e-06/0.3547, allocations: 4.438 kB / 464.7 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000443/0.3552, allocations: 288.9 kB / 465 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3552, allocations: 4.016 kB / 465 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001113/0.3553, allocations: 47.86 kB / 465 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.3555, allocations: 64.38 kB / 465.1 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009839/0.3565, allocations: 1.342 MB / 466.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.3568, allocations: 56.31 kB / 466.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.3569, allocations: 17.28 kB / 466.5 MB, free: 15.4 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.357, allocations: 125.7 kB / 466.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.3571, allocations: 43.42 kB / 466.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.469e-05/0.3572, allocations: 34.56 kB / 466.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3572, allocations: 3.188 kB / 466.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.3572, allocations: 0 / 466.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3572, allocations: 0.5 kB / 466.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.3583, allocations: 0.7292 MB / 467.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3583, allocations: 1.031 kB / 467.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.3584, allocations: 28.05 kB / 467.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001277/0.3586, allocations: 38.44 kB / 467.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.3586, allocations: 8.828 kB / 467.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.3597, allocations: 1.331 MB / 468.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3597, allocations: 0 / 468.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006125/0.3603, allocations: 489.5 kB / 469.3 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.3605, allocations: 133.6 kB / 469.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/0.3605, allocations: 5.359 kB / 469.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.3608, allocations: 35.34 kB / 469.5 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.32e-05/0.3609, allocations: 23.62 kB / 469.5 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.3609, allocations: 10.44 kB / 469.5 MB, free: 13.2 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000206/0.3611, allocations: 208.6 kB / 469.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007105/0.3618, allocations: 174.8 kB / 469.9 MB, free: 13.07 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001783/0.362, allocations: 121.8 kB / 470 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009339/0.363, allocations: 0.6151 MB / 470.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.363, allocations: 13.03 kB / 470.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003238/0.3633, allocations: 214.1 kB / 470.8 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.3637, allocations: 43.3 kB / 470.9 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.3651, allocations: 0.5523 MB / 471.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005571/0.3656, allocations: 0.873 MB / 472.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3657, allocations: 5.188 kB / 472.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of Templates: time 0.01141/0.3771, allocations: 5.695 MB / 478 MB, free: 8.789 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/ACDC/Rectifier1Pulse/Thyristor1Pulse_R/Thyristor1Pulse_R.csv","../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches