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.DCDC.HBridge.HBridge_DC_Drive.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.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.873/1.873, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003394, allocations: 8 kB / 264.1 MB, free: 3.457 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2821, allocations: 44.5 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.0154/0.2976, allocations: 9.061 MB / 317.6 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008592/0.3062, allocations: 3.525 MB / 321.2 MB, free: 140 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/0.3081, allocations: 39.81 kB / 321.2 MB, free: 100 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00267/0.3108, allocations: 0.5986 MB / 321.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003166/0.314, allocations: 0.7595 MB / 322.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.3162, allocations: 403.4 kB / 323 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004451/0.3207, allocations: 1.664 MB / 324.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001723/0.3225, allocations: 0.7028 MB / 325.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001393/0.3239, allocations: 0.6925 MB / 326 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001584/0.3255, allocations: 0.7894 MB / 326.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003907/0.3259, allocations: 96 kB / 326.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009757/0.3269, allocations: 247.8 kB / 327.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005118/0.3274, allocations: 318.6 kB / 327.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007204/0.3282, allocations: 412.6 kB / 327.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00387/0.3321, allocations: 2.31 MB / 330.2 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3321, allocations: 0 / 330.2 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3321, allocations: 0 / 330.2 MB, free: 7.078 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.343e-05/0.3322, allocations: 0 / 330.2 MB, free: 7.078 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.005779/0.338, allocations: 2.022 MB / 332.2 MB, free: 4.977 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.3381, allocations: 12.02 kB / 332.2 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006322/0.3387, allocations: 224.3 kB / 332.4 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000855/0.3396, allocations: 253.3 kB / 332.7 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002777/0.3424, allocations: 1.085 MB / 333.7 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.3426, allocations: 119.1 kB / 333.9 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003602/0.343, allocations: 167.9 kB / 334 MB, free: 3.062 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004384/0.3474, allocations: 1.657 MB / 335.7 MB, free: 1.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.719e-05/0.3475, allocations: 0 / 335.7 MB, free: 1.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000222/0.3477, allocations: 75.98 kB / 335.8 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.893e-05/0.3478, allocations: 39.94 kB / 335.8 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003949/0.3517, allocations: 1.218 MB / 337 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01471/0.3665, allocations: 6.788 MB / 343.8 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.3694, allocations: 1.036 MB / 344.8 MB, free: 7.902 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.457e-05/0.3695, allocations: 12.98 kB / 344.9 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00185/0.3714, allocations: 0.6953 MB / 345.5 MB, free: 7.168 MB / 282.7 MB Notification: Performance of pre-optimization done (n=122): time 4.117e-06/0.3714, allocations: 0 / 345.5 MB, free: 7.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.01358/0.385, allocations: 4.08 MB / 349.6 MB, free: 2.906 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001808/0.3852, allocations: 216.9 kB / 349.8 MB, free: 2.648 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00272/0.388, allocations: 1.31 MB / 351.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.3882, allocations: 49.7 kB / 351.2 MB, free: 1.273 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000985/0.3892, allocations: 0.7893 MB / 352 MB, free: 484 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005904/0.3899, allocations: 382.6 kB / 352.4 MB, free: 96 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.39, allocations: 28 kB / 352.4 MB, free: 68 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.3902, allocations: 357.9 kB / 352.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.3916, allocations: 435.8 kB / 353.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.3934, allocations: 0.8509 MB / 354 MB, free: 14.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.395, allocations: 0.5897 MB / 354.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.395, allocations: 4 kB / 354.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.00472/0.3998, allocations: 1.718 MB / 356.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004974/0.4003, allocations: 0.5552 MB / 356.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.137e-05/0.4004, allocations: 20.06 kB / 356.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.4021, allocations: 341.3 kB / 357.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/0.4036, allocations: 231.6 kB / 357.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.4141, allocations: 6.184 MB / 363.6 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.4157, allocations: 68.41 kB / 363.7 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.416, allocations: 64 kB / 363.8 MB, free: 3.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.416, allocations: 4 kB / 363.8 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004394/0.4204, allocations: 1.589 MB / 365.4 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/0.4205, allocations: 16 kB / 365.4 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/0.422, allocations: 326.4 kB / 365.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.4235, allocations: 231.8 kB / 365.9 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.434, allocations: 6.184 MB / 372.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.4355, allocations: 63.98 kB / 372.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.4357, allocations: 60.12 kB / 372.2 MB, free: 10.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.notFire,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001271/0.437, allocations: 0.5759 MB / 372.8 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004042/0.4374, allocations: 162 kB / 373 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004353/0.4418, allocations: 1.457 MB / 374.4 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.4419, allocations: 12 kB / 374.4 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.4419, allocations: 3.953 kB / 374.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.163e-05/0.4419, allocations: 11.97 kB / 374.4 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007767/0.4497, allocations: 3.068 MB / 377.5 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.4498, allocations: 4 kB / 377.5 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009704/0.4507, allocations: 124 kB / 377.6 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.4522, allocations: 322.3 kB / 378 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.4524, allocations: 35.94 kB / 378 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.4626, allocations: 6.168 MB / 384.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/0.4627, allocations: 11.95 kB / 384.2 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005595/0.4683, allocations: 2.128 MB / 386.3 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.4693, allocations: 351 kB / 386.6 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003382/0.4697, allocations: 28 kB / 386.7 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4708, allocations: 51.97 kB / 386.7 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/0.4712, allocations: 117 kB / 386.8 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.4714, allocations: 39.98 kB / 386.9 MB, free: 11.63 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001884/0.4733, allocations: 0.8645 MB / 387.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4733, allocations: 0 / 387.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003533/0.4768, allocations: 0.707 MB / 388.4 MB, free: 10.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.notFire,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.006311/0.4832, allocations: 2.795 MB / 391.2 MB, free: 7.188 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00758/0.4908, allocations: 3.37 MB / 394.6 MB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.4908, allocations: 0 / 394.6 MB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003033/0.4939, allocations: 1.287 MB / 395.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/0.4962, allocations: 317.8 kB / 396.2 MB, free: 2.012 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.5079, allocations: 5.353 MB / 401.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/0.5093, allocations: 1.344 MB / 402.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001309/0.5106, allocations: 184.2 kB / 403.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.5118, allocations: 0.636 MB / 403.7 MB, free: 9.996 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5118, allocations: 0 / 403.7 MB, free: 9.996 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.389/0.9008, allocations: 37.46 MB / 441.2 MB, free: 69.96 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.9011, allocations: 232.4 kB / 441.4 MB, free: 69.72 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.013/4.915, allocations: 0 / 441.4 MB, free: 69.72 MB / 346.7 MB