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.153/2.153, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003688, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1114, allocations: 44.51 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6191/0.7306, allocations: 79.56 MB / 388.6 MB, free: 15.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004739/0.7312, allocations: 92.12 kB / 388.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05624/0.7874, allocations: 11.77 MB / 400.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7875, allocations: 0 / 400.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.565e-05/0.7876, allocations: 19.62 kB / 400.5 MB, free: 13.76 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.00286/0.7904, allocations: 1.046 MB / 401.6 MB, free: 13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.7905, allocations: 7.75 kB / 401.6 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.7908, allocations: 96.88 kB / 401.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.7918, allocations: 0.5016 MB / 402.2 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.321e-05/0.7919, allocations: 55.91 kB / 402.2 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.7921, allocations: 62.66 kB / 402.3 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.794, allocations: 0.7416 MB / 403 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.7941, allocations: 11.8 kB / 403 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.7942, allocations: 24.78 kB / 403.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.7942, allocations: 15.31 kB / 403.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.7962, allocations: 0.5884 MB / 403.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005255/0.8015, allocations: 2.609 MB / 406.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.8034, allocations: 0.6078 MB / 406.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.429e-05/0.8035, allocations: 11.78 kB / 406.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001187/0.8047, allocations: 468.6 kB / 407.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 3.356e-06/0.8047, allocations: 3.938 kB / 407.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.005033/0.8098, allocations: 1.246 MB / 408.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.8098, allocations: 118.1 kB / 408.7 MB, free: 9.984 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007791/0.8106, allocations: 0.5119 MB / 409.2 MB, free: 9.793 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.834e-05/0.8107, allocations: 48.34 kB / 409.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.811, allocations: 322.4 kB / 409.6 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.8112, allocations: 200 kB / 409.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.8113, allocations: 18.19 kB / 409.8 MB, free: 9.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.8114, allocations: 380.3 kB / 410.2 MB, free: 9.105 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008586/0.8123, allocations: 245.1 kB / 410.4 MB, free: 9.066 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009697/0.8132, allocations: 430.8 kB / 410.8 MB, free: 8.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.8142, allocations: 304.8 kB / 411.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.8142, allocations: 0 / 411.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002486/0.8167, allocations: 0.8565 MB / 412 MB, free: 8.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/0.8169, allocations: 258.8 kB / 412.2 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.8169, allocations: 3.906 kB / 412.2 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000734/0.8177, allocations: 156.3 kB / 412.4 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/0.8186, allocations: 132.4 kB / 412.5 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/0.8223, allocations: 2.357 MB / 414.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009732/0.8233, allocations: 96.25 kB / 415 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.081e-05/0.8234, allocations: 29.91 kB / 415 MB, free: 6.578 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.8234, allocations: 3.938 kB / 415 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002152/0.8256, allocations: 0.7593 MB / 415.8 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.8256, allocations: 3.812 kB / 415.8 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006636/0.8263, allocations: 153.3 kB / 415.9 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/0.8271, allocations: 112.3 kB / 416 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003758/0.8309, allocations: 2.368 MB / 418.4 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009591/0.8319, allocations: 81.28 kB / 418.5 MB, free: 4.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.786e-05/0.832, allocations: 30.31 kB / 418.5 MB, free: 4.793 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 (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.0006034/0.8326, allocations: 312.7 kB / 418.8 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.8328, allocations: 69.95 kB / 418.9 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.8352, allocations: 0.7684 MB / 419.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.8352, allocations: 7.656 kB / 419.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.8352, allocations: 0 / 419.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.8352, allocations: 7.922 kB / 419.7 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00357/0.8388, allocations: 1.566 MB / 421.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.8389, allocations: 0 / 421.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007223/0.8396, allocations: 81.44 kB / 421.3 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006441/0.8403, allocations: 156.8 kB / 421.5 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.749e-05/0.8403, allocations: 15.44 kB / 421.5 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003576/0.8439, allocations: 2.343 MB / 423.8 MB, free: 2.145 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.844, allocations: 3.953 kB / 423.8 MB, free: 2.141 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003411/0.8474, allocations: 1.183 MB / 425 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004165/0.8478, allocations: 202.1 kB / 425.2 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.848, allocations: 17.23 kB / 425.2 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007734/0.8488, allocations: 49.47 kB / 425.3 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.8491, allocations: 72.7 kB / 425.3 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.658e-05/0.8492, allocations: 28.12 kB / 425.4 MB, free: 1.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005823/0.8497, allocations: 360.8 kB / 425.7 MB, free: 1.484 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.332e-06/0.8498, allocations: 0 / 425.7 MB, free: 1.484 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00164/0.8514, allocations: 355.2 kB / 426.1 MB, free: 1.438 MB / 314.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) * Number of clocked states: 0 () * 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.0002727/0.8517, allocations: 139 kB / 426.2 MB, free: 1.336 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004052/0.8558, allocations: 1.525 MB / 427.7 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.8558, allocations: 0 / 427.7 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.8572, allocations: 0.5344 MB / 428.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008932/0.8582, allocations: 89.38 kB / 428.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.8619, allocations: 1.568 MB / 429.9 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007318/0.8627, allocations: 0.9574 MB / 430.9 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007432/0.8634, allocations: 91.52 kB / 431 MB, free: 14.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.8637, allocations: 50.17 kB / 431 MB, free: 14.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.8637, allocations: 0 / 431 MB, free: 14.73 MB / 330.7 MB Notification: Performance of Templates: time 0.03987/0.9036, allocations: 10.53 MB / 441.5 MB, free: 8.105 MB / 330.7 MB