Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005208/0.0005209, allocations: 11.98 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09839, allocations: 44.5 MB / 308.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3987/0.4972, allocations: 79.86 MB / 388.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.4975, allocations: 93.55 kB / 388.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04832/0.5459, allocations: 12.09 MB / 400.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5459, allocations: 0 / 400.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.089e-05/0.546, allocations: 23.38 kB / 400.6 MB, free: 13.04 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.00315/0.5492, allocations: 1.065 MB / 401.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.5492, allocations: 15.69 kB / 401.7 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003157/0.5496, allocations: 113.9 kB / 401.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002328/0.5498, allocations: 93.47 kB / 401.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.5509, allocations: 0.5182 MB / 402.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.321e-05/0.551, allocations: 58.95 kB / 402.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.5512, allocations: 72.28 kB / 402.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.5533, allocations: 0.7679 MB / 403.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.5533, allocations: 3.984 kB / 403.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.5534, allocations: 27.91 kB / 403.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.5535, allocations: 15.34 kB / 403.4 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002091/0.5556, allocations: 0.6007 MB / 404 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005944/0.5615, allocations: 2.686 MB / 406.7 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.5634, allocations: 0.5929 MB / 407.2 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.347e-05/0.5635, allocations: 8.219 kB / 407.3 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/0.5648, allocations: 466.3 kB / 407.7 MB, free: 9.633 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 4.198e-06/0.5648, allocations: 0 / 407.7 MB, free: 9.633 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.00512/0.57, allocations: 1.245 MB / 409 MB, free: 9.246 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.5701, allocations: 118.2 kB / 409.1 MB, free: 9.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007743/0.5708, allocations: 475.7 kB / 409.5 MB, free: 8.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.571, allocations: 43.77 kB / 409.6 MB, free: 8.906 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.5712, allocations: 358.8 kB / 409.9 MB, free: 8.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.5714, allocations: 211.2 kB / 410.1 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.07e-05/0.5715, allocations: 14.12 kB / 410.1 MB, free: 8.527 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.136e-05/0.5716, allocations: 344.8 kB / 410.5 MB, free: 8.203 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008647/0.5725, allocations: 249.7 kB / 410.7 MB, free: 8.164 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009507/0.5734, allocations: 432.8 kB / 411.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009301/0.5744, allocations: 316.2 kB / 411.5 MB, free: 7.848 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.5744, allocations: 0 / 411.5 MB, free: 7.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002367/0.5768, allocations: 0.8345 MB / 412.3 MB, free: 7.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003962/0.5772, allocations: 1.863 MB / 414.2 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.5772, allocations: 7.75 kB / 414.2 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006992/0.5779, allocations: 138.1 kB / 414.3 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009278/0.5789, allocations: 135.6 kB / 414.4 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003593/0.5825, allocations: 2.329 MB / 416.8 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.5835, allocations: 92.92 kB / 416.8 MB, free: 4.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.469e-05/0.5836, allocations: 33.2 kB / 416.9 MB, free: 4.035 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.5837, allocations: 7.812 kB / 416.9 MB, free: 4.031 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002164/0.5858, allocations: 0.7662 MB / 417.7 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.5859, allocations: 3.844 kB / 417.7 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005594/0.5864, allocations: 146 kB / 417.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008358/0.5873, allocations: 122.9 kB / 417.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003477/0.5908, allocations: 2.315 MB / 420.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007893/0.5916, allocations: 73.45 kB / 420.3 MB, free: 2.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.494e-05/0.5917, allocations: 30.8 kB / 420.3 MB, free: 2.27 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.0006047/0.5923, allocations: 309.7 kB / 420.6 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.5925, allocations: 74.2 kB / 420.7 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.5949, allocations: 0.774 MB / 421.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.5949, allocations: 11.7 kB / 421.5 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5949, allocations: 0 / 421.5 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.5949, allocations: 8.062 kB / 421.5 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/0.5986, allocations: 1.583 MB / 423.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.5986, allocations: 3.984 kB / 423.1 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007973/0.5994, allocations: 88.66 kB / 423.2 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005907/0.6, allocations: 145.1 kB / 423.3 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-05/0.6001, allocations: 17.77 kB / 423.3 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.6038, allocations: 2.31 MB / 425.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6038, allocations: 8 kB / 425.7 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.6073, allocations: 1.2 MB / 426.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003989/0.6077, allocations: 205.2 kB / 427.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.6079, allocations: 17.41 kB / 427.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007703/0.6087, allocations: 53.33 kB / 427.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.6089, allocations: 68.73 kB / 427.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.361e-05/0.609, allocations: 25.58 kB / 427.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006026/0.6096, allocations: 365.2 kB / 427.6 MB, free: 14.97 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.6096, allocations: 4 kB / 427.6 MB, free: 14.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001556/0.6112, allocations: 347.4 kB / 427.9 MB, free: 14.92 MB / 330.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.003849/0.6151, allocations: 1.788 MB / 429.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004009/0.6191, allocations: 1.519 MB / 431.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.6192, allocations: 3.812 kB / 431.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.6206, allocations: 0.5227 MB / 431.8 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008708/0.6214, allocations: 106.2 kB / 431.9 MB, free: 13.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005978/0.6274, allocations: 5.212 MB / 437.1 MB, free: 8.734 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006471/0.6281, allocations: 0.9613 MB / 438 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.6288, allocations: 274.4 kB / 438.3 MB, free: 7.879 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6288, allocations: 3.938 kB / 438.3 MB, free: 7.875 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.134/3.763, allocations: 14.54 MB / 452.8 MB, free: 12.92 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat