Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_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.0009908/0.0009909, allocations: 168.9 kB / 8.47 MB, free: 1.852 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.13/1.13, allocations: 205.2 MB / 214.1 MB, free: 5.07 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.0008727/0.0008726, allocations: 91.25 kB / 262.1 MB, free: 5.113 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.67e-06/5.7e-06, allocations: 4 kB / 315 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07138/0.0714, allocations: 47.56 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2245/0.2959, allocations: 84.71 MB / 447.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.2962, allocations: 85.33 kB / 447.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02959/0.3258, allocations: 12.02 MB / 459.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.494e-05/0.3259, allocations: 15.75 kB / 459.4 MB, free: 6.352 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.001657/0.3276, allocations: 0.9964 MB / 460.4 MB, free: 5.609 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.3276, allocations: 13.98 kB / 460.4 MB, free: 5.605 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.3278, allocations: 95.09 kB / 460.5 MB, free: 5.559 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000732/0.3285, allocations: 0.5271 MB / 461 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.3285, allocations: 21.12 kB / 461 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.482e-05/0.3286, allocations: 44.97 kB / 461.1 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009833/0.3296, allocations: 459.5 kB / 461.5 MB, free: 5.184 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009758/0.3306, allocations: 0.6081 MB / 462.1 MB, free: 4.977 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.3306, allocations: 5.719 kB / 462.1 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.708e-05/0.3307, allocations: 1.812 kB / 462.1 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3307, allocations: 20.03 kB / 462.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003357/0.3341, allocations: 2.491 MB / 464.7 MB, free: 3.562 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/0.3348, allocations: 449.8 kB / 465.1 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003708/0.3352, allocations: 252.6 kB / 465.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.3352, allocations: 7.062 kB / 465.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005033/0.3357, allocations: 346.6 kB / 465.7 MB, free: 3.371 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 2.936e-06/0.3357, allocations: 0.9688 kB / 465.7 MB, free: 3.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.0009466/0.3367, allocations: 0.5443 MB / 466.2 MB, free: 3.246 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.3367, allocations: 115 kB / 466.3 MB, free: 3.121 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/0.3372, allocations: 383.5 kB / 466.7 MB, free: 2.977 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.3372, allocations: 35.95 kB / 466.8 MB, free: 2.941 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3373, allocations: 269.1 kB / 467 MB, free: 2.738 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3374, allocations: 198.9 kB / 467.2 MB, free: 2.594 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/0.3375, allocations: 0 / 467.2 MB, free: 2.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.447e-05/0.3376, allocations: 371.1 kB / 467.6 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.3379, allocations: 176.8 kB / 467.7 MB, free: 2.254 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/0.3382, allocations: 343.7 kB / 468.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.3386, allocations: 208.7 kB / 468.3 MB, free: 2.012 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3386, allocations: 1.125 kB / 468.3 MB, free: 2.012 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00108/0.3397, allocations: 0.6375 MB / 468.9 MB, free: 1.863 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003253/0.34, allocations: 1.833 MB / 470.8 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.34, allocations: 4.188 kB / 470.8 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005401/0.3406, allocations: 148.2 kB / 470.9 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.3411, allocations: 126.4 kB / 471 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.3436, allocations: 2.057 MB / 473.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.3443, allocations: 73.75 kB / 473.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.3443, allocations: 26.22 kB / 473.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-06/0.3443, allocations: 4.406 kB / 473.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009438/0.3453, allocations: 0.5491 MB / 473.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3453, allocations: 4.062 kB / 473.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003816/0.3457, allocations: 143.5 kB / 473.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004636/0.3462, allocations: 121.2 kB / 474 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.3484, allocations: 2.05 MB / 476 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.3489, allocations: 66.72 kB / 476.1 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.852e-05/0.349, allocations: 31.08 kB / 476.1 MB, free: 12.92 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.3492, allocations: 139.8 kB / 476.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3493, allocations: 62.97 kB / 476.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.3504, allocations: 0.5744 MB / 476.9 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3504, allocations: 10.38 kB / 476.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3504, allocations: 5.125 kB / 476.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.3504, allocations: 8.047 kB / 476.9 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/0.3522, allocations: 1.301 MB / 478.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3522, allocations: 0 / 478.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004494/0.3527, allocations: 91.06 kB / 478.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003933/0.3531, allocations: 138.5 kB / 478.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.421e-05/0.3532, allocations: 15.42 kB / 478.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.3554, allocations: 2.046 MB / 480.5 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3554, allocations: 0 / 480.5 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001293/0.3567, allocations: 0.9432 MB / 481.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.3569, allocations: 201.6 kB / 481.7 MB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.357, allocations: 4 kB / 481.7 MB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004822/0.3575, allocations: 59.55 kB / 481.7 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3577, allocations: 55.81 kB / 481.8 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.666e-05/0.3577, allocations: 23.67 kB / 481.8 MB, free: 8.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002927/0.358, allocations: 283.5 kB / 482.1 MB, free: 8.785 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001/0.359, allocations: 319.1 kB / 482.4 MB, free: 8.473 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001953/0.3592, allocations: 141.7 kB / 482.5 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.361, allocations: 1.144 MB / 483.7 MB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.361, allocations: 1.062 kB / 483.7 MB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005828/0.3616, allocations: 426.5 kB / 484.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.3621, allocations: 86.03 kB / 484.2 MB, free: 7.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3643, allocations: 0.9763 MB / 485.2 MB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006573/0.3649, allocations: 1.001 MB / 486.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.365, allocations: 0 / 486.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of Templates: time 0.02003/0.385, allocations: 12.54 MB / 498.7 MB, free: 8.609 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches