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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=240000,variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004959/0.0004959, allocations: 19.92 kB / 264.6 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 44.51 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.02151/0.1346, allocations: 9.056 MB / 318.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.1453, allocations: 3.525 MB / 321.7 MB, free: 3.723 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.1473, allocations: 35.88 kB / 321.7 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.1501, allocations: 0.5986 MB / 322.3 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003316/0.1534, allocations: 0.7634 MB / 323.1 MB, free: 2.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002199/0.1557, allocations: 395.4 kB / 323.4 MB, free: 1.934 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004785/0.1605, allocations: 1.675 MB / 325.1 MB, free: 260 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.1627, allocations: 0.6951 MB / 325.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001643/0.1644, allocations: 0.6808 MB / 326.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001738/0.1661, allocations: 0.8009 MB / 327.3 MB, free: 14.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003599/0.1665, allocations: 92 kB / 327.4 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.1677, allocations: 243.9 kB / 327.6 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005604/0.1683, allocations: 326.6 kB / 327.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007484/0.169, allocations: 412.6 kB / 328.3 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004536/0.1736, allocations: 2.306 MB / 330.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1736, allocations: 0 / 330.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1736, allocations: 0 / 330.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.967e-05/0.1737, allocations: 4 kB / 330.7 MB, free: 10.67 MB / 282.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.007023/0.1807, allocations: 2.015 MB / 332.7 MB, free: 8.574 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.1808, allocations: 8.031 kB / 332.7 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.1819, allocations: 241.3 kB / 332.9 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004075/0.186, allocations: 1.092 MB / 334 MB, free: 7.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003871/0.1865, allocations: 127.1 kB / 334.1 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007967/0.1873, allocations: 163.9 kB / 334.3 MB, free: 6.895 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007879/0.1952, allocations: 1.665 MB / 336 MB, free: 5.145 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/0.1954, allocations: 4 kB / 336 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003298/0.1957, allocations: 64 kB / 336 MB, free: 5.078 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.247e-05/0.1958, allocations: 36 kB / 336.1 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006105/0.2019, allocations: 1.229 MB / 337.3 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.022/0.224, allocations: 6.78 MB / 344.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004284/0.2283, allocations: 1.048 MB / 345.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.2285, allocations: 13 kB / 345.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00272/0.2312, allocations: 0.6992 MB / 345.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=122): time 7.344e-06/0.2312, allocations: 0 / 345.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.02037/0.2516, allocations: 4.072 MB / 349.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001898/0.2519, allocations: 204.9 kB / 350.1 MB, free: 6.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003935/0.2558, allocations: 1.317 MB / 351.4 MB, free: 5.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002378/0.2561, allocations: 49.7 kB / 351.5 MB, free: 5.098 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.2574, allocations: 0.7932 MB / 352.3 MB, free: 4.293 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006942/0.2581, allocations: 386.6 kB / 352.6 MB, free: 3.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.2583, allocations: 28 kB / 352.7 MB, free: 3.883 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002584/0.2586, allocations: 361.9 kB / 353 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.2607, allocations: 427.8 kB / 353.4 MB, free: 3.105 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002595/0.2633, allocations: 0.8509 MB / 354.3 MB, free: 2.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/0.2657, allocations: 0.5897 MB / 354.9 MB, free: 1.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-05/0.2658, allocations: 4 kB / 354.9 MB, free: 1.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.007087/0.2729, allocations: 1.71 MB / 356.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006869/0.2736, allocations: 0.5672 MB / 357.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.212e-05/0.2737, allocations: 15.98 kB / 357.2 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002512/0.2762, allocations: 338.3 kB / 357.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002308/0.2785, allocations: 231.7 kB / 357.7 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01562/0.2942, allocations: 6.185 MB / 363.9 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/0.2967, allocations: 71.94 kB / 364 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002299/0.297, allocations: 68.05 kB / 364.1 MB, free: 7.641 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.297, allocations: 5.875 kB / 364.1 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006844/0.3039, allocations: 1.585 MB / 365.6 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.627e-05/0.304, allocations: 12.62 kB / 365.7 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002503/0.3065, allocations: 338.4 kB / 366 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002349/0.3089, allocations: 219.6 kB / 366.2 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2556/0.5646, allocations: 6.179 MB / 372.4 MB, free: 57.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.5662, allocations: 67.88 kB / 372.4 MB, free: 57.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/0.5665, allocations: 60.14 kB / 372.5 MB, free: 57.58 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.001437/0.568, allocations: 0.5669 MB / 373.1 MB, free: 57.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004611/0.5685, allocations: 164 kB / 373.2 MB, free: 57.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004149/0.5726, allocations: 1.456 MB / 374.7 MB, free: 57.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.277e-05/0.5727, allocations: 6.297 kB / 374.7 MB, free: 57.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5727, allocations: 1.828 kB / 374.7 MB, free: 57.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009158/0.5736, allocations: 351.5 kB / 375 MB, free: 57.08 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003848/0.574, allocations: 33.56 kB / 375.1 MB, free: 57.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.5751, allocations: 52.44 kB / 375.1 MB, free: 57.08 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.5755, allocations: 86.7 kB / 375.2 MB, free: 57.08 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00566/0.5812, allocations: 1.676 MB / 376.9 MB, free: 56.5 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004748/0.586, allocations: 1.946 MB / 378.8 MB, free: 55.65 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00146/0.5875, allocations: 0.5367 MB / 379.4 MB, free: 55.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002028/0.5895, allocations: 0.8667 MB / 380.2 MB, free: 55.08 MB / 314.7 MB Notification: Performance of Backend: time 9.62e-07/0.5896, allocations: 0 / 380.2 MB, free: 55.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.007398/0.597, allocations: 3.095 MB / 383.3 MB, free: 53.17 MB / 314.7 MB Notification: Performance of SimCode: time 0.008532/0.6056, allocations: 4.291 MB / 387.6 MB, free: 50.52 MB / 314.7 MB Notification: Performance of Templates: time 0.06439/0.67, allocations: 25.45 MB / 413.1 MB, free: 29.65 MB / 314.7 MB