Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") [: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.001598/0.001598, allocations: 182.7 kB / 8.134 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.196/1.196, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009114/0.0009114, allocations: 92.44 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.654e-06/7.815e-06, allocations: 0 / 336.5 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1974, allocations: 50.38 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0924/0.2898, allocations: 86.08 MB / 473 MB, free: 0.707 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.2901, allocations: 91.16 kB / 473.1 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03543/0.3256, allocations: 12.61 MB / 485.7 MB, free: 4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.033e-05/0.3256, allocations: 19.98 kB / 485.7 MB, free: 3.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.00189/0.3275, allocations: 1.012 MB / 486.7 MB, free: 2.906 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3276, allocations: 8.031 kB / 486.7 MB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.3278, allocations: 106.8 kB / 486.8 MB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008705/0.3287, allocations: 0.5318 MB / 487.4 MB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.3287, allocations: 27.91 kB / 487.4 MB, free: 2.195 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3288, allocations: 47.94 kB / 487.4 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009115/0.3297, allocations: 471.9 kB / 487.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3309, allocations: 0.6419 MB / 488.5 MB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.3309, allocations: 3.984 kB / 488.6 MB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.251e-05/0.331, allocations: 4 kB / 488.6 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.331, allocations: 16 kB / 488.6 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004372/0.3354, allocations: 2.593 MB / 491.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.3359, allocations: 267.1 kB / 491.4 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004298/0.3363, allocations: 254.8 kB / 491.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.973e-05/0.3364, allocations: 16.62 kB / 491.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005821/0.337, allocations: 354 kB / 492 MB, free: 13.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.344e-06/0.337, allocations: 4 kB / 492 MB, free: 13.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.001022/0.338, allocations: 0.5431 MB / 492.6 MB, free: 12.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.3381, allocations: 119.5 kB / 492.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.3386, allocations: 389.2 kB / 493.1 MB, free: 12.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/0.3386, allocations: 37.62 kB / 493.1 MB, free: 12.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.3388, allocations: 272.3 kB / 493.4 MB, free: 12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.339, allocations: 197.1 kB / 493.6 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.339, allocations: 0 / 493.6 MB, free: 11.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3392, allocations: 378.8 kB / 493.9 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.3395, allocations: 177.5 kB / 494.1 MB, free: 11.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004532/0.34, allocations: 352 kB / 494.5 MB, free: 10.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.3403, allocations: 209.4 kB / 494.7 MB, free: 10.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3403, allocations: 3.938 kB / 494.7 MB, free: 10.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001061/0.3414, allocations: 0.6564 MB / 495.3 MB, free: 9.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005944/0.342, allocations: 1.831 MB / 497.2 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.342, allocations: 8 kB / 497.2 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004808/0.3425, allocations: 132.8 kB / 497.3 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.3431, allocations: 135.8 kB / 497.4 MB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.3456, allocations: 2.114 MB / 499.5 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000587/0.3462, allocations: 75.66 kB / 499.6 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.497e-05/0.3462, allocations: 27.98 kB / 499.6 MB, free: 5.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.49e-06/0.3462, allocations: 4 kB / 499.6 MB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009735/0.3472, allocations: 0.554 MB / 0.4885 GB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3472, allocations: 4 kB / 0.4885 GB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003924/0.3476, allocations: 141.2 kB / 0.4886 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.3481, allocations: 127.7 kB / 0.4887 GB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.3505, allocations: 2.114 MB / 0.4908 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005448/0.351, allocations: 67.66 kB / 0.4909 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.251e-05/0.3511, allocations: 24.86 kB / 0.4909 GB, free: 2.242 MB / 378.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_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002057/0.3513, allocations: 148.8 kB / 0.491 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3514, allocations: 59.25 kB / 0.4911 GB, free: 2.031 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001091/0.3525, allocations: 0.5851 MB / 0.4917 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.3525, allocations: 11.91 kB / 0.4917 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.3526, allocations: 0 / 0.4917 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3526, allocations: 3.984 kB / 0.4917 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.3544, allocations: 1.313 MB / 0.493 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3545, allocations: 3.984 kB / 0.493 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1177/0.4722, allocations: 93.48 kB / 0.4931 GB, free: 133.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000428/0.4726, allocations: 142.8 kB / 0.4932 GB, free: 133.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.4727, allocations: 7.578 kB / 0.4932 GB, free: 133.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001968/0.4747, allocations: 2.095 MB / 0.4952 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4747, allocations: 7.094 kB / 0.4952 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001358/0.4761, allocations: 0.954 MB / 0.4962 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.4764, allocations: 202.3 kB / 0.4964 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.4765, allocations: 2.781 kB / 0.4964 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.477, allocations: 52.86 kB / 0.4964 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.4771, allocations: 60.97 kB / 0.4965 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.577e-05/0.4772, allocations: 25.39 kB / 0.4965 GB, free: 131.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002935/0.4775, allocations: 295.5 kB / 0.4968 GB, free: 131.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001006/0.4785, allocations: 330.9 kB / 0.4971 GB, free: 131.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.000185/0.4787, allocations: 132.4 kB / 0.4972 GB, free: 131.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.4804, allocations: 1.16 MB / 0.4984 GB, free: 131.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4804, allocations: 0 / 0.4984 GB, free: 131.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005736/0.481, allocations: 415.3 kB / 0.4988 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005456/0.4816, allocations: 89.84 kB / 0.4988 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.4838, allocations: 1.03 MB / 0.4999 GB, free: 130.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000478/0.4843, allocations: 1.007 MB / 0.5008 GB, free: 130.1 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4843, allocations: 0 / 0.5008 GB, free: 130.1 MB / 378.7 MB Notification: Performance of Templates: time 0.02083/0.5052, allocations: 12.46 MB / 0.513 GB, free: 129.8 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_RL/SinglePhaseTwoLevel_RL.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches