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_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_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003442, allocations: 11.94 kB / 264.1 MB, free: 13.45 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09263, allocations: 44.51 MB / 308.6 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4711/0.5638, allocations: 79.56 MB / 388.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/0.5642, allocations: 87.11 kB / 388.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04707/0.6113, allocations: 11.77 MB / 400 MB, free: 13.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6113, allocations: 3.938 kB / 400 MB, free: 13.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.477e-05/0.6114, allocations: 19.31 kB / 400 MB, free: 13.21 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.002981/0.6144, allocations: 1.048 MB / 401 MB, free: 12.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.6145, allocations: 10.28 kB / 401.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002927/0.6148, allocations: 111.8 kB / 401.2 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.6151, allocations: 92.91 kB / 401.3 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.6162, allocations: 0.5041 MB / 401.8 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.201e-05/0.6163, allocations: 52.11 kB / 401.8 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.6164, allocations: 70.97 kB / 401.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.6187, allocations: 0.7422 MB / 402.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.112e-05/0.6187, allocations: 3.844 kB / 402.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.6189, allocations: 24.19 kB / 402.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.6189, allocations: 15.38 kB / 402.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.6212, allocations: 0.5919 MB / 403.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005824/0.627, allocations: 2.608 MB / 405.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.629, allocations: 0.6068 MB / 406.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.049e-05/0.6291, allocations: 12.27 kB / 406.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00126/0.6304, allocations: 469.3 kB / 406.9 MB, free: 9.879 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 3.877e-06/0.6304, allocations: 0 / 406.9 MB, free: 9.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.005303/0.6357, allocations: 1.247 MB / 408.2 MB, free: 9.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/0.6359, allocations: 118.6 kB / 408.3 MB, free: 9.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008524/0.6367, allocations: 460 kB / 408.8 MB, free: 9.195 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.6369, allocations: 51.31 kB / 408.8 MB, free: 9.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.6371, allocations: 352 kB / 409.2 MB, free: 8.926 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.6374, allocations: 205.5 kB / 409.4 MB, free: 8.781 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.728e-05/0.6374, allocations: 16.22 kB / 409.4 MB, free: 8.781 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.973e-05/0.6375, allocations: 340.2 kB / 409.7 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000874/0.6384, allocations: 246.1 kB / 409.9 MB, free: 8.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009365/0.6394, allocations: 426 kB / 410.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000957/0.6403, allocations: 308.9 kB / 410.7 MB, free: 8.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.6404, allocations: 3.906 kB / 410.7 MB, free: 8.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002371/0.6427, allocations: 0.8176 MB / 411.5 MB, free: 7.902 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004055/0.6432, allocations: 1.861 MB / 413.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.6432, allocations: 7.812 kB / 413.3 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000878/0.6441, allocations: 147 kB / 413.5 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009252/0.645, allocations: 123.5 kB / 413.6 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003861/0.6489, allocations: 2.357 MB / 416 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.65, allocations: 93.81 kB / 416.1 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-05/0.6501, allocations: 30.36 kB / 416.1 MB, free: 4.305 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.6501, allocations: 6.188 kB / 416.1 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00221/0.6523, allocations: 0.766 MB / 416.9 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.6524, allocations: 3.844 kB / 416.9 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006025/0.653, allocations: 151.1 kB / 417 MB, free: 4.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/0.6538, allocations: 121 kB / 417.1 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/0.6574, allocations: 2.332 MB / 419.5 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007619/0.6582, allocations: 76.42 kB / 419.5 MB, free: 2.535 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.798e-05/0.6583, allocations: 32.77 kB / 419.6 MB, free: 2.531 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.0006068/0.6589, allocations: 313.2 kB / 419.9 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.6592, allocations: 66.06 kB / 419.9 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.6616, allocations: 0.7657 MB / 420.7 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.6616, allocations: 11.64 kB / 420.7 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.6616, allocations: 0 / 420.7 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.6617, allocations: 3.984 kB / 420.7 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.6654, allocations: 1.562 MB / 422.3 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.6655, allocations: 0 / 422.3 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007302/0.6662, allocations: 85.56 kB / 422.4 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000645/0.6669, allocations: 142.5 kB / 422.5 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.069e-05/0.667, allocations: 17.36 kB / 422.5 MB, free: 1.438 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003883/0.6708, allocations: 2.372 MB / 424.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.6709, allocations: 0 / 424.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003432/0.6743, allocations: 1.175 MB / 426.1 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004657/0.6748, allocations: 215.1 kB / 426.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.675, allocations: 13.59 kB / 426.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007729/0.6758, allocations: 53.11 kB / 426.3 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.6761, allocations: 68.8 kB / 426.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.628e-05/0.6762, allocations: 26.67 kB / 426.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006269/0.6768, allocations: 361.3 kB / 426.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.994e-06/0.6768, allocations: 0 / 426.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001702/0.6785, allocations: 355.3 kB / 427.1 MB, free: 15.18 MB / 330.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.003961/0.6825, allocations: 1.764 MB / 428.9 MB, free: 14.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004138/0.6867, allocations: 1.516 MB / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.6867, allocations: 3.875 kB / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.6883, allocations: 0.5282 MB / 431 MB, free: 13.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009438/0.6892, allocations: 100 kB / 431 MB, free: 13.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006342/0.6956, allocations: 5.12 MB / 436.2 MB, free: 9.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006885/0.6963, allocations: 0.9458 MB / 437.1 MB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006802/0.697, allocations: 256.8 kB / 437.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6971, allocations: 0 / 437.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.068/3.765, allocations: 14.32 MB / 451.7 MB, free: 13.86 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_R_res.mat does not exist to compare? outputFormat=mat