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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.129/2.129, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003454, allocations: 8 kB / 264.1 MB, free: 3.461 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2906, allocations: 44.5 MB / 308.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.4954, allocations: 79.57 MB / 388.2 MB, free: 13.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005196/0.496, allocations: 91.92 kB / 388.2 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08199/0.578, allocations: 11.76 MB / 400 MB, free: 1.176 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.578, allocations: 0 / 400 MB, free: 1.176 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001095/0.5782, allocations: 19.94 kB / 400 MB, free: 1.156 MB / 330.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.004956/0.5832, allocations: 1.045 MB / 401.1 MB, free: 44 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.741e-05/0.5833, allocations: 16.03 kB / 401.1 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005088/0.5838, allocations: 110.4 kB / 401.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.5842, allocations: 94.88 kB / 401.3 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.5863, allocations: 0.5095 MB / 401.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.5864, allocations: 49.31 kB / 401.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003402/0.5868, allocations: 71.94 kB / 401.9 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003696/0.5905, allocations: 0.7462 MB / 402.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.269e-05/0.5907, allocations: 4 kB / 402.7 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001694/0.5909, allocations: 24 kB / 402.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.449e-05/0.5909, allocations: 16 kB / 402.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003807/0.5947, allocations: 0.5868 MB / 403.3 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.605, allocations: 2.606 MB / 405.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003361/0.6084, allocations: 0.6139 MB / 406.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.6086, allocations: 12.56 kB / 406.5 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0023/0.6109, allocations: 465.7 kB / 407 MB, free: 9.922 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 6.222e-06/0.611, allocations: 3.938 kB / 407 MB, free: 9.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.008816/0.6198, allocations: 1.246 MB / 408.2 MB, free: 8.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.62, allocations: 115.4 kB / 408.3 MB, free: 8.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.6214, allocations: 466.2 kB / 408.8 MB, free: 8.047 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002561/0.6218, allocations: 41.7 kB / 408.8 MB, free: 8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005306/0.6223, allocations: 328.6 kB / 409.2 MB, free: 7.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005051/0.6229, allocations: 201.2 kB / 409.4 MB, free: 7.473 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.446e-05/0.623, allocations: 12 kB / 409.4 MB, free: 7.461 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003319/0.6234, allocations: 386.7 kB / 409.7 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.6249, allocations: 245.9 kB / 410 MB, free: 6.832 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.6268, allocations: 426 kB / 410.4 MB, free: 6.348 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.6287, allocations: 306.4 kB / 410.7 MB, free: 6.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/0.6287, allocations: 0 / 410.7 MB, free: 6.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004775/0.6335, allocations: 0.8571 MB / 411.6 MB, free: 5.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001151/0.6347, allocations: 1.863 MB / 413.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.6348, allocations: 4 kB / 413.4 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.6361, allocations: 158.7 kB / 413.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.6375, allocations: 123.8 kB / 413.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006665/0.6442, allocations: 2.348 MB / 416 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.6458, allocations: 95.39 kB / 416.1 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.6461, allocations: 35.94 kB / 416.2 MB, free: 272 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.6461, allocations: 4 kB / 416.2 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2587/0.9049, allocations: 0.7484 MB / 416.9 MB, free: 91.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.9049, allocations: 6.375 kB / 416.9 MB, free: 91.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008084/0.9058, allocations: 152.9 kB / 417.1 MB, free: 91.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009278/0.9067, allocations: 114.4 kB / 417.2 MB, free: 91.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00429/0.911, allocations: 2.362 MB / 419.6 MB, free: 90.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009551/0.9121, allocations: 79.08 kB / 419.6 MB, free: 90.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.192e-05/0.9122, allocations: 30.45 kB / 419.7 MB, free: 90.57 MB / 346.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.0005862/0.9128, allocations: 313.5 kB / 420 MB, free: 90.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.9129, allocations: 68.97 kB / 420 MB, free: 90.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.9154, allocations: 0.7691 MB / 420.8 MB, free: 90.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.9154, allocations: 11.5 kB / 420.8 MB, free: 90.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.9155, allocations: 3.438 kB / 420.8 MB, free: 90.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.9155, allocations: 4.312 kB / 420.8 MB, free: 90.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.9192, allocations: 1.569 MB / 422.4 MB, free: 90.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.9192, allocations: 0 / 422.4 MB, free: 90.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/0.92, allocations: 87.5 kB / 422.5 MB, free: 90.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006566/0.9206, allocations: 150.3 kB / 422.6 MB, free: 90 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.438e-05/0.9207, allocations: 15.66 kB / 422.6 MB, free: 90 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003692/0.9244, allocations: 2.352 MB / 425 MB, free: 88.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.9245, allocations: 1.312 kB / 425 MB, free: 88.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003403/0.9279, allocations: 1.186 MB / 426.2 MB, free: 88.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000415/0.9283, allocations: 200.7 kB / 426.4 MB, free: 87.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.9285, allocations: 15.81 kB / 426.4 MB, free: 87.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007719/0.9293, allocations: 57.94 kB / 426.4 MB, free: 87.94 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/0.9296, allocations: 67.08 kB / 426.5 MB, free: 87.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.657e-05/0.9296, allocations: 25.53 kB / 426.5 MB, free: 87.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006229/0.9303, allocations: 361.8 kB / 426.9 MB, free: 87.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.9303, allocations: 0 / 426.9 MB, free: 87.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00159/0.9319, allocations: 343.9 kB / 427.2 MB, free: 87.7 MB / 346.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.005223/0.9371, allocations: 1.783 MB / 429 MB, free: 86.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006807/0.944, allocations: 1.508 MB / 430.5 MB, free: 85.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.9441, allocations: 0 / 430.5 MB, free: 85.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.9465, allocations: 0.5391 MB / 431.1 MB, free: 85.64 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.9479, allocations: 110.4 kB / 431.2 MB, free: 85.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007119/0.9551, allocations: 5.068 MB / 436.2 MB, free: 81.26 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.9556, allocations: 0.9574 MB / 437.2 MB, free: 80.54 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007325/0.9563, allocations: 94.33 kB / 437.3 MB, free: 80.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/0.9568, allocations: 252.5 kB / 437.5 MB, free: 80.35 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.9568, allocations: 0 / 437.5 MB, free: 80.35 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06532/1.022, allocations: 16.13 MB / 453.7 MB, free: 67.27 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002637/1.023, allocations: 256.8 kB / 453.9 MB, free: 66.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.542/4.564, allocations: 3.938 kB / 453.9 MB, free: 66.93 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat