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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.0004788, allocations: 12 kB / 264.1 MB, free: 2.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3013, allocations: 44.49 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2009/0.5023, allocations: 79.87 MB / 388.4 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000423/0.5028, allocations: 87.94 kB / 388.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07747/0.5803, allocations: 12.1 MB / 400.6 MB, free: 432 kB / 330.7 MB Notification: Performance of FrontEnd: time 4.108e-06/0.5803, allocations: 0 / 400.6 MB, free: 432 kB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001362/0.5805, allocations: 23.92 kB / 400.7 MB, free: 408 kB / 330.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.005504/0.586, allocations: 1.068 MB / 401.7 MB, free: 15.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.139e-05/0.5861, allocations: 8.031 kB / 401.7 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004722/0.5866, allocations: 118.5 kB / 401.8 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003965/0.587, allocations: 90.97 kB / 401.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002027/0.5891, allocations: 0.5276 MB / 402.5 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.5892, allocations: 53.98 kB / 402.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003165/0.5896, allocations: 72 kB / 402.6 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004013/0.5936, allocations: 0.7693 MB / 403.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-05/0.5937, allocations: 3.938 kB / 403.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.594, allocations: 28 kB / 403.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.594, allocations: 16 kB / 403.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002502/0.5965, allocations: 0.6024 MB / 404 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007805/0.6044, allocations: 2.679 MB / 406.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.6067, allocations: 0.5913 MB / 407.3 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.6068, allocations: 16.48 kB / 407.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/0.6084, allocations: 469.6 kB / 407.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 3.817e-06/0.6084, allocations: 4 kB / 407.8 MB, free: 9.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=69): time 0.00596/0.6144, allocations: 1.234 MB / 409 MB, free: 7.758 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.648e-05/0.6145, allocations: 119.3 kB / 409.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009892/0.6155, allocations: 474.1 kB / 409.6 MB, free: 7.145 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002046/0.6158, allocations: 45.7 kB / 409.6 MB, free: 7.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004099/0.6162, allocations: 336.5 kB / 409.9 MB, free: 6.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004118/0.6166, allocations: 209 kB / 410.1 MB, free: 6.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.814e-05/0.6167, allocations: 16 kB / 410.2 MB, free: 6.539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002905/0.617, allocations: 378.8 kB / 410.5 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.6181, allocations: 249.9 kB / 410.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.6195, allocations: 430.2 kB / 411.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.6208, allocations: 315.8 kB / 411.5 MB, free: 5.109 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-05/0.6208, allocations: 0 / 411.5 MB, free: 5.109 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003096/0.6239, allocations: 0.8718 MB / 412.4 MB, free: 4.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001058/0.625, allocations: 1.864 MB / 414.2 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.6251, allocations: 4 kB / 414.2 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008708/0.626, allocations: 140.8 kB / 414.4 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.6271, allocations: 131.8 kB / 414.5 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2635/0.8906, allocations: 2.322 MB / 416.8 MB, free: 90.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.8917, allocations: 94.3 kB / 416.9 MB, free: 90.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.8918, allocations: 32.11 kB / 417 MB, free: 90.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.8918, allocations: 3.594 kB / 417 MB, free: 90.68 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002588/0.8944, allocations: 0.7719 MB / 417.7 MB, free: 90.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.8945, allocations: 8.344 kB / 417.7 MB, free: 90.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006464/0.8951, allocations: 143 kB / 417.9 MB, free: 90.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009267/0.8961, allocations: 123 kB / 418 MB, free: 90.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005032/0.9011, allocations: 2.326 MB / 420.3 MB, free: 89.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.9023, allocations: 90.59 kB / 420.4 MB, free: 89.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.471e-05/0.9025, allocations: 25.16 kB / 420.4 MB, free: 89.32 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 (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.0007359/0.9032, allocations: 312 kB / 420.7 MB, free: 89.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.9034, allocations: 75.61 kB / 420.8 MB, free: 89.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003263/0.9067, allocations: 0.7796 MB / 421.6 MB, free: 89.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.9067, allocations: 10.42 kB / 421.6 MB, free: 89.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.9068, allocations: 0 / 421.6 MB, free: 89.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.9068, allocations: 7.047 kB / 421.6 MB, free: 89.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005003/0.9118, allocations: 1.579 MB / 423.2 MB, free: 88.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.9119, allocations: 6.688 kB / 423.2 MB, free: 88.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.913, allocations: 99.19 kB / 423.3 MB, free: 88.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008446/0.9138, allocations: 140.4 kB / 423.4 MB, free: 88.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.591e-05/0.914, allocations: 13.75 kB / 423.4 MB, free: 88.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005159/0.9191, allocations: 2.317 MB / 425.8 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.9192, allocations: 0 / 425.8 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004568/0.9238, allocations: 1.201 MB / 427 MB, free: 86.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004773/0.9243, allocations: 210.8 kB / 427.2 MB, free: 86.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.9245, allocations: 18.91 kB / 427.2 MB, free: 86.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.9256, allocations: 55.75 kB / 427.2 MB, free: 86.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.9258, allocations: 63.81 kB / 427.3 MB, free: 86.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.189e-05/0.9259, allocations: 22.3 kB / 427.3 MB, free: 86.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007877/0.9268, allocations: 368.7 kB / 427.7 MB, free: 86.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9268, allocations: 0 / 427.7 MB, free: 86.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002391/0.9292, allocations: 352 kB / 428 MB, free: 86.28 MB / 346.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.005291/0.9345, allocations: 1.783 MB / 429.8 MB, free: 85.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005503/0.9401, allocations: 1.519 MB / 431.3 MB, free: 84.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.9401, allocations: 0 / 431.3 MB, free: 84.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/0.9422, allocations: 0.5326 MB / 431.9 MB, free: 84.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.9435, allocations: 110 kB / 432 MB, free: 84.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006691/0.9502, allocations: 5.177 MB / 437.1 MB, free: 79.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006771/0.951, allocations: 0.9602 MB / 438.1 MB, free: 78.99 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009999/0.952, allocations: 99.42 kB / 438.2 MB, free: 78.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006877/0.9527, allocations: 261 kB / 438.5 MB, free: 78.78 MB / 346.7 MB Notification: Performance of SimCode: time 2.865e-06/0.9527, allocations: 1.312 kB / 438.5 MB, free: 78.78 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08582/1.039, allocations: 16.1 MB / 454.6 MB, free: 65.68 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/1.039, allocations: 261.5 kB / 454.8 MB, free: 65.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.596/4.635, allocations: 3.938 kB / 454.8 MB, free: 65.33 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_RL_res.mat does not exist to compare? outputFormat=mat