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_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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009942/0.0009942, allocations: 184 kB / 8.138 MB, free: 2.219 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.195/1.195, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.001084/0.001083, allocations: 95.67 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.774e-06/7.814e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2171, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09378/0.311, allocations: 85.75 MB / 472.7 MB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3113, allocations: 95.88 kB / 472.8 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03597/0.3473, allocations: 12.27 MB / 485 MB, free: 4.672 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.386e-05/0.3474, allocations: 23.98 kB / 485.1 MB, free: 4.648 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002429/0.3498, allocations: 0.9956 MB / 486.1 MB, free: 3.594 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3499, allocations: 11.97 kB / 486.1 MB, free: 3.582 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003546/0.3502, allocations: 98.88 kB / 486.2 MB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.3514, allocations: 0.5356 MB / 486.7 MB, free: 2.906 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.3514, allocations: 20 kB / 486.7 MB, free: 2.887 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.3516, allocations: 47.98 kB / 486.8 MB, free: 2.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001001/0.3526, allocations: 455.9 kB / 487.2 MB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.3538, allocations: 0.6132 MB / 487.8 MB, free: 1.754 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.212e-05/0.3538, allocations: 7.984 kB / 487.8 MB, free: 1.746 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.3539, allocations: 3.906 kB / 487.8 MB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.288e-05/0.3539, allocations: 16 kB / 487.9 MB, free: 1.727 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00425/0.3582, allocations: 2.522 MB / 490.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.359, allocations: 453.2 kB / 490.8 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.3595, allocations: 246.3 kB / 491.1 MB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.85e-05/0.3596, allocations: 12.47 kB / 491.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006365/0.3602, allocations: 349.9 kB / 491.4 MB, free: 14.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 4.95e-06/0.3602, allocations: 4 kB / 491.4 MB, free: 14.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.001172/0.3614, allocations: 0.5391 MB / 492 MB, free: 13.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.3615, allocations: 115.5 kB / 492.1 MB, free: 13.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.3621, allocations: 389.2 kB / 492.4 MB, free: 12.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.3622, allocations: 25.7 kB / 492.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.3624, allocations: 272.3 kB / 492.7 MB, free: 12.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.3626, allocations: 189.2 kB / 492.9 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.3626, allocations: 4 kB / 492.9 MB, free: 12.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3628, allocations: 370.8 kB / 493.3 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.3632, allocations: 181.5 kB / 493.5 MB, free: 11.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.3636, allocations: 347.8 kB / 493.8 MB, free: 11.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.364, allocations: 204.7 kB / 494 MB, free: 11.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.364, allocations: 0 / 494 MB, free: 11.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00125/0.3653, allocations: 0.6395 MB / 494.6 MB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009817/0.3663, allocations: 1.827 MB / 496.5 MB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.3663, allocations: 11.98 kB / 496.5 MB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005968/0.3669, allocations: 148.7 kB / 496.6 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005707/0.3675, allocations: 127.8 kB / 496.8 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.3703, allocations: 2.045 MB / 498.8 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006555/0.371, allocations: 75.66 kB / 498.9 MB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.773e-05/0.3711, allocations: 35.89 kB / 498.9 MB, free: 6.141 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/0.3711, allocations: 8 kB / 498.9 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001021/0.3721, allocations: 0.5374 MB / 499.5 MB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3721, allocations: 8.516 kB / 499.5 MB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004199/0.3726, allocations: 148.8 kB / 499.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.373, allocations: 127.8 kB / 499.7 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.3757, allocations: 2.05 MB / 0.49 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006173/0.3763, allocations: 67.66 kB / 0.4901 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.317e-05/0.3764, allocations: 31.98 kB / 0.4901 GB, free: 3.051 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 (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.0002907/0.3767, allocations: 136.9 kB / 0.4902 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.3769, allocations: 67.23 kB / 0.4903 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.3781, allocations: 0.5772 MB / 0.4909 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.3782, allocations: 7.984 kB / 0.4909 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3782, allocations: 0 / 0.4909 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3782, allocations: 4 kB / 0.4909 GB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.3804, allocations: 1.309 MB / 0.4922 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3805, allocations: 0 / 0.4922 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/0.3809, allocations: 87.88 kB / 0.4922 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004389/0.3814, allocations: 144.7 kB / 0.4924 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.318e-05/0.3815, allocations: 11.89 kB / 0.4924 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1114/0.4929, allocations: 2.034 MB / 0.4944 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.493, allocations: 0 / 0.4944 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001518/0.4945, allocations: 0.9479 MB / 0.4953 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.4948, allocations: 201.1 kB / 0.4955 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.495, allocations: 10.52 kB / 0.4955 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000516/0.4955, allocations: 46.86 kB / 0.4956 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.4957, allocations: 52.52 kB / 0.4956 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.4957, allocations: 24.53 kB / 0.4956 GB, free: 132.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003506/0.4961, allocations: 288.9 kB / 0.4959 GB, free: 132.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001121/0.4972, allocations: 328.8 kB / 0.4962 GB, free: 132.2 MB / 378.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_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 (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.000228/0.4975, allocations: 136.1 kB / 0.4963 GB, free: 132.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.4993, allocations: 1.146 MB / 0.4975 GB, free: 131.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4993, allocations: 0 / 0.4975 GB, free: 131.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005652/0.4999, allocations: 426.7 kB / 0.4979 GB, free: 131.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.5004, allocations: 89.69 kB / 0.498 GB, free: 131.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.5027, allocations: 0.9799 MB / 0.4989 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005173/0.5032, allocations: 1.004 MB / 0.4999 GB, free: 130.7 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5032, allocations: 0 / 0.4999 GB, free: 130.7 MB / 378.7 MB Notification: Performance of Templates: time 0.02245/0.5257, allocations: 12.53 MB / 0.5121 GB, free: 130.5 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches