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_RL.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_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_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 2.162/2.162, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003388, allocations: 15.94 kB / 264.6 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.1002, allocations: 44.49 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4803/0.5805, allocations: 79.86 MB / 388.9 MB, free: 15.33 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003879/0.581, allocations: 90.67 kB / 389 MB, free: 15.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05324/0.6342, allocations: 12.1 MB / 401.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.6343, allocations: 3.938 kB / 401.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.097e-05/0.6344, allocations: 23.12 kB / 401.1 MB, free: 13.57 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.003098/0.6375, allocations: 1.065 MB / 402.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.6375, allocations: 7.812 kB / 402.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003276/0.6379, allocations: 89.62 kB / 402.3 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.6391, allocations: 0.5335 MB / 402.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.662e-05/0.6392, allocations: 50.09 kB / 402.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.6393, allocations: 75.64 kB / 403 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.6415, allocations: 0.7614 MB / 403.7 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.6416, allocations: 3.938 kB / 403.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.6417, allocations: 31.19 kB / 403.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.6417, allocations: 15.44 kB / 403.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.6438, allocations: 0.6028 MB / 404.4 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005774/0.6496, allocations: 2.678 MB / 407 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.6515, allocations: 0.5852 MB / 407.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.225e-05/0.6516, allocations: 19.08 kB / 407.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.6529, allocations: 473.5 kB / 408.1 MB, free: 10.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.287e-06/0.6529, allocations: 3.938 kB / 408.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.005135/0.6581, allocations: 1.238 MB / 409.4 MB, free: 9.836 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.6582, allocations: 114 kB / 409.5 MB, free: 9.711 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008525/0.659, allocations: 0.5286 MB / 410 MB, free: 9.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.6592, allocations: 47.05 kB / 410 MB, free: 9.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.6595, allocations: 330.6 kB / 410.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002247/0.6597, allocations: 212.4 kB / 410.6 MB, free: 9.148 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-05/0.6598, allocations: 14.72 kB / 410.6 MB, free: 9.148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.6599, allocations: 378.1 kB / 411 MB, free: 8.816 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008822/0.6608, allocations: 249.5 kB / 411.2 MB, free: 8.777 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009824/0.6618, allocations: 430.9 kB / 411.6 MB, free: 8.539 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009606/0.6628, allocations: 316.4 kB / 411.9 MB, free: 8.465 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.6628, allocations: 4 kB / 411.9 MB, free: 8.461 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002536/0.6654, allocations: 0.8725 MB / 412.8 MB, free: 8.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.6656, allocations: 259.8 kB / 413.1 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.6656, allocations: 3.969 kB / 413.1 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006948/0.6663, allocations: 148.9 kB / 413.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009389/0.6673, allocations: 128 kB / 413.3 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/0.671, allocations: 2.326 MB / 415.7 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.672, allocations: 99.12 kB / 415.8 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.226e-05/0.6721, allocations: 24.72 kB / 415.8 MB, free: 6.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.6722, allocations: 3.781 kB / 415.8 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002305/0.6745, allocations: 0.7781 MB / 416.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.6745, allocations: 3.938 kB / 416.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006142/0.6751, allocations: 152 kB / 416.7 MB, free: 6.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008421/0.676, allocations: 131 kB / 416.8 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003698/0.6797, allocations: 2.33 MB / 419.2 MB, free: 4.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009874/0.6807, allocations: 85.23 kB / 419.2 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.363e-05/0.6808, allocations: 29.66 kB / 419.3 MB, free: 4.496 MB / 314.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 () * Number of clocked 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.0006671/0.6815, allocations: 313 kB / 419.6 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.6817, allocations: 66.16 kB / 419.6 MB, free: 4.246 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002423/0.6841, allocations: 0.782 MB / 420.4 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/0.6842, allocations: 3.906 kB / 420.4 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6842, allocations: 4 kB / 420.4 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.6842, allocations: 3.984 kB / 420.4 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003657/0.6879, allocations: 1.581 MB / 422 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.6879, allocations: 0 / 422 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.6887, allocations: 93.69 kB / 422.1 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006012/0.6894, allocations: 144.1 kB / 422.3 MB, free: 3.391 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.6895, allocations: 14.73 kB / 422.3 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003631/0.6931, allocations: 2.321 MB / 424.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6932, allocations: 0 / 424.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/0.6967, allocations: 1.198 MB / 425.8 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004292/0.6972, allocations: 207.6 kB / 426 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.6973, allocations: 22.42 kB / 426 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008348/0.6982, allocations: 56.83 kB / 426.1 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.6985, allocations: 63.38 kB / 426.1 MB, free: 1.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-05/0.6985, allocations: 19.55 kB / 426.2 MB, free: 1.328 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006036/0.6992, allocations: 369.8 kB / 426.5 MB, free: 1.195 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6992, allocations: 0 / 426.5 MB, free: 1.195 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00162/0.7008, allocations: 355.4 kB / 426.9 MB, free: 1.148 MB / 314.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,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) * Number of clocked states: 0 () * 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.0002721/0.7011, allocations: 141.1 kB / 427 MB, free: 1.043 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005368/0.7065, allocations: 1.518 MB / 428.5 MB, free: 460 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/0.7065, allocations: 3.875 kB / 428.5 MB, free: 460 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002562/0.7091, allocations: 0.5238 MB / 429 MB, free: 252 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.7108, allocations: 106.8 kB / 429.1 MB, free: 228 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006008/0.7169, allocations: 1.654 MB / 430.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000983/0.7179, allocations: 0.9547 MB / 431.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001142/0.7191, allocations: 94.38 kB / 431.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.7195, allocations: 53.55 kB / 431.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7195, allocations: 4 kB / 431.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of Templates: time 0.04743/0.7669, allocations: 10.36 MB / 442.3 MB, free: 7.566 MB / 330.7 MB