Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 2.162/2.162, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003582, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.09219, allocations: 44.51 MB / 309.1 MB, free: 352 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.007153/0.09939, allocations: 3.867 MB / 313 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003232/0.1027, allocations: 1.306 MB / 314.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000371/0.1031, allocations: 15.88 kB / 314.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002602/0.1034, allocations: 83.31 kB / 314.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006718/0.104, allocations: 227.3 kB / 314.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008299/0.1049, allocations: 219.6 kB / 314.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.106, allocations: 0.6241 MB / 315.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006032/0.1066, allocations: 286.9 kB / 315.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004485/0.107, allocations: 278.8 kB / 316 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005311/0.1076, allocations: 326.4 kB / 316.3 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.1077, allocations: 36 kB / 316.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.1079, allocations: 32 kB / 316.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.1081, allocations: 131.4 kB / 316.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.1083, allocations: 173.3 kB / 316.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1094, allocations: 0.7677 MB / 317.4 MB, free: 7.949 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1094, allocations: 3.938 kB / 317.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1094, allocations: 0 / 317.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1095, allocations: 0 / 317.4 MB, free: 7.945 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.003002/0.1125, allocations: 1.031 MB / 318.5 MB, free: 6.859 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.1125, allocations: 8.031 kB / 318.5 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002424/0.1128, allocations: 86.97 kB / 318.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.1143, allocations: 0.5524 MB / 319.1 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.1145, allocations: 57.3 kB / 319.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.1147, allocations: 72 kB / 319.2 MB, free: 6.043 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002165/0.1169, allocations: 0.7254 MB / 319.9 MB, free: 5.289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.1169, allocations: 0 / 319.9 MB, free: 5.289 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.117, allocations: 28 kB / 320 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.848e-05/0.1171, allocations: 16 kB / 320 MB, free: 5.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.1192, allocations: 0.5828 MB / 320.6 MB, free: 4.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006016/0.1252, allocations: 2.567 MB / 323.1 MB, free: 1.992 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.1273, allocations: 0.6009 MB / 323.7 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.388e-05/0.1274, allocations: 12.55 kB / 323.8 MB, free: 1.371 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.1287, allocations: 457.6 kB / 324.2 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 3.577e-06/0.1287, allocations: 4 kB / 324.2 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of matching and sorting (n=67): time 0.005506/0.1343, allocations: 1.234 MB / 325.4 MB, free: 15.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.1344, allocations: 115.4 kB / 325.6 MB, free: 15.5 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009522/0.1353, allocations: 0.5262 MB / 326.1 MB, free: 14.97 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.1354, allocations: 41.7 kB / 326.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000355/0.1358, allocations: 332.5 kB / 326.4 MB, free: 14.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.1361, allocations: 201.1 kB / 326.6 MB, free: 14.39 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.18e-05/0.1361, allocations: 16 kB / 326.7 MB, free: 14.38 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.1364, allocations: 382.7 kB / 327 MB, free: 14 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009169/0.1373, allocations: 233.9 kB / 327.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.1384, allocations: 422.9 kB / 327.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009891/0.1394, allocations: 302.4 kB / 328 MB, free: 12.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.1394, allocations: 3.938 kB / 328 MB, free: 12.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002679/0.1421, allocations: 0.8493 MB / 328.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.1423, allocations: 264.5 kB / 329.1 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.1424, allocations: 4 kB / 329.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007706/0.1431, allocations: 152.7 kB / 329.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008565/0.144, allocations: 127.8 kB / 329.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004459/0.1485, allocations: 2.356 MB / 331.7 MB, free: 9.004 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009536/0.1495, allocations: 99.38 kB / 331.8 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.95e-05/0.1496, allocations: 32 kB / 331.8 MB, free: 8.875 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.1496, allocations: 4 kB / 331.8 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002358/0.152, allocations: 0.7507 MB / 332.6 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.152, allocations: 4 kB / 332.6 MB, free: 8.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006876/0.1527, allocations: 155 kB / 332.7 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/0.1535, allocations: 119.8 kB / 332.9 MB, free: 7.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/0.158, allocations: 2.359 MB / 335.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00086/0.1589, allocations: 87.39 kB / 335.3 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.647e-05/0.159, allocations: 32 kB / 335.3 MB, free: 5.234 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.notFire,$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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * 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.0005834/0.1596, allocations: 308.9 kB / 335.6 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.1598, allocations: 75.14 kB / 335.7 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.1626, allocations: 0.7758 MB / 336.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.1626, allocations: 3.984 kB / 336.5 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1626, allocations: 4 kB / 336.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004843/0.1631, allocations: 204.1 kB / 336.7 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.1633, allocations: 16 kB / 336.7 MB, free: 3.816 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007166/0.1641, allocations: 56.06 kB / 336.8 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/0.1643, allocations: 52.48 kB / 336.8 MB, free: 3.711 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00367/0.168, allocations: 0.9014 MB / 337.7 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003391/0.1714, allocations: 1.139 MB / 338.9 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009469/0.1724, allocations: 284.3 kB / 339.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006839/0.1731, allocations: 362.8 kB / 339.5 MB, free: 1.012 MB / 282.7 MB Notification: Performance of Backend: time 7.71e-07/0.1731, allocations: 0 / 339.5 MB, free: 1.012 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003777/0.1769, allocations: 1.338 MB / 340.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of SimCode: time 0.003528/0.1804, allocations: 1.974 MB / 342.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of Templates: time 0.03426/0.2147, allocations: 11.52 MB / 354.3 MB, free: 2.113 MB / 298.7 MB "" Variables in the reference:time,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,inverter.ac.v,inverter.ac.i Variables in the result:R,constantVoltage_n.V,constantVoltage_n.n.v,constantVoltage_n.v,constantVoltage_p.V,constantVoltage_p.p.v,constantVoltage_p.v,f,f1,fundamentalWaveCurrent.f,fundamentalWaveCurrent.k,fundamentalWaveCurrent.mean1.f,fundamentalWaveCurrent.mean1.t0,fundamentalWaveCurrent.mean1.x0,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.yGreaterOrEqualZero,fundamentalWaveCurrent.mean2.f,fundamentalWaveCurrent.mean2.t0,fundamentalWaveCurrent.mean2.x0,fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.yGreaterOrEqualZero,fundamentalWaveCurrent.product1.significantDigits,fundamentalWaveCurrent.product2.significantDigits,fundamentalWaveCurrent.sin1.amplitude,fundamentalWaveCurrent.sin1.freqHz,fundamentalWaveCurrent.sin1.offset,fundamentalWaveCurrent.sin1.phase,fundamentalWaveCurrent.sin1.startTime,fundamentalWaveCurrent.sin2.amplitude,fundamentalWaveCurrent.sin2.freqHz,fundamentalWaveCurrent.sin2.offset,fundamentalWaveCurrent.sin2.phase,fundamentalWaveCurrent.sin2.startTime,fundamentalWaveCurrent.x0Cos,fundamentalWaveCurrent.x0Sin,fundamentalWaveVoltage.f,fundamentalWaveVoltage.k,fundamentalWaveVoltage.mean1.f,fundamentalWaveVoltage.mean1.t0,fundamentalWaveVoltage.mean1.x0,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.yGreaterOrEqualZero,fundamentalWaveVoltage.mean2.f,fundamentalWaveVoltage.mean2.t0,fundamentalWaveVoltage.mean2.x0,fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.yGreaterOrEqualZero,fundamentalWaveVoltage.product1.significantDigits,fundamentalWaveVoltage.product2.significantDigits,fundamentalWaveVoltage.sin1.amplitude,fundamentalWaveVoltage.sin1.freqHz,fundamentalWaveVoltage.sin1.offset,fundamentalWaveVoltage.sin1.phase,fundamentalWaveVoltage.sin1.startTime,fundamentalWaveVoltage.sin2.amplitude,fundamentalWaveVoltage.sin2.freqHz,fundamentalWaveVoltage.sin2.offset,fundamentalWaveVoltage.sin2.phase,fundamentalWaveVoltage.sin2.startTime,fundamentalWaveVoltage.x0Cos,fundamentalWaveVoltage.x0Sin,inverter.GoffDiode,inverter.GoffTransistor,inverter.RonDiode,inverter.RonTransistor,inverter.T,inverter.VkneeDiode,inverter.VkneeTransistor,inverter.ac.i,inverter.ac.v,inverter.andCondition_n.u2,inverter.andCondition_p.u2,inverter.constantEnable,inverter.dc_n.v,inverter.dc_p.v,inverter.diode_n.Goff,inverter.diode_n.Ron,inverter.diode_n.T,inverter.diode_n.T_heatPort,inverter.diode_n.Vknee,inverter.diode_n.p.v,inverter.diode_p.Goff,inverter.diode_p.Ron,inverter.diode_p.T,inverter.diode_p.T_heatPort,inverter.diode_p.Vknee,inverter.diode_p.n.v,inverter.enableLogic.booleanReplicator.nout,inverter.enableLogic.booleanReplicator.u,inverter.enableLogic.booleanReplicator.y[1],inverter.enableLogic.constantEnable,inverter.enableLogic.enableConstantSource.k,inverter.enableLogic.enableConstantSource.y,inverter.enableLogic.internalEnable[1],inverter.enableLogic.m,inverter.enableLogic.useConstantEnable,inverter.m,inverter.transistor_n.Goff,inverter.transistor_n.Ron,inverter.transistor_n.T,inverter.transistor_n.T_heatPort,inverter.transistor_n.Vknee,inverter.transistor_n.n.v,inverter.transistor_p.Goff,inverter.transistor_p.Ron,inverter.transistor_p.T,inverter.transistor_p.T_heatPort,inverter.transistor_p.Vknee,inverter.transistor_p.p.v,inverter.useConstantEnable,inverter.vAC,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,signalPWM.constantDutyCycle,signalPWM.f,signalPWM.limiter.limitsAtInit,signalPWM.limiter.strict,signalPWM.limiter.uMax,signalPWM.limiter.uMin,signalPWM.sawtooth.amplitude,signalPWM.sawtooth.nperiod,signalPWM.sawtooth.offset,signalPWM.sawtooth.period,signalPWM.sawtooth.startTime,signalPWM.startTime,signalPWM.useConstantDutyCycle,signalPWM.zeroOrderHold.samplePeriod,signalPWM.zeroOrderHold.startTime,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time