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.129/2.129, allocations: 194.8 MB / 211.7 MB, free: 2.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003732, allocations: 11.94 kB / 264.6 MB, free: 12.9 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.0963, allocations: 44.5 MB / 309.1 MB, free: 340 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.5641, allocations: 97.75 MB / 406.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003362/0.5645, allocations: 96.16 kB / 406.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.169/0.7335, allocations: 41.2 MB / 448.1 MB, free: 6.289 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.7335, allocations: 0 / 448.1 MB, free: 6.289 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001752/0.7337, allocations: 47.92 kB / 448.2 MB, free: 6.242 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.006589/0.7403, allocations: 2.036 MB / 450.2 MB, free: 4.266 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.7404, allocations: 12.02 kB / 450.2 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.7417, allocations: 264.1 kB / 450.5 MB, free: 3.996 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003752/0.7455, allocations: 1.202 MB / 451.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.7457, allocations: 120.2 kB / 451.8 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003755/0.7461, allocations: 158.9 kB / 451.9 MB, free: 2.863 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004704/0.7508, allocations: 1.697 MB / 453.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.848e-05/0.7509, allocations: 7.906 kB / 453.6 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/0.7511, allocations: 65.56 kB / 453.7 MB, free: 1.617 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.094e-05/0.7512, allocations: 40 kB / 453.7 MB, free: 1.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004645/0.7559, allocations: 1.251 MB / 455 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01591/0.7718, allocations: 6.942 MB / 461.9 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.7749, allocations: 1.072 MB / 463 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.981e-05/0.775, allocations: 9 kB / 463 MB, free: 8.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001951/0.777, allocations: 0.7305 MB / 463.8 MB, free: 7.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.348e-06/0.777, allocations: 0 / 463.8 MB, free: 7.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01468/0.7917, allocations: 4.17 MB / 467.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.7919, allocations: 204.9 kB / 468.1 MB, free: 3.328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003037/0.795, allocations: 1.345 MB / 469.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002676/0.7953, allocations: 49.7 kB / 469.5 MB, free: 1.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.7963, allocations: 0.7895 MB / 470.3 MB, free: 1.117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005816/0.7969, allocations: 374.7 kB / 470.7 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.7971, allocations: 32 kB / 470.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.7973, allocations: 357.9 kB / 471 MB, free: 368 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/0.7988, allocations: 463.9 kB / 471.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/0.8007, allocations: 0.8562 MB / 472.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.8025, allocations: 0.6131 MB / 473 MB, free: 14.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.8025, allocations: 4 kB / 473 MB, free: 14.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005238/0.8078, allocations: 1.768 MB / 474.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005098/0.8083, allocations: 0.5296 MB / 475.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.748e-05/0.8084, allocations: 12 kB / 475.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.81, allocations: 355.1 kB / 475.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/0.8118, allocations: 227.6 kB / 475.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01761/0.8295, allocations: 6.169 MB / 482 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002878/0.8324, allocations: 76.02 kB / 482.1 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005168/0.833, allocations: 68 kB / 482.2 MB, free: 4.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.8331, allocations: 4 kB / 482.2 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007792/0.8409, allocations: 1.628 MB / 483.8 MB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.268e-05/0.841, allocations: 12 kB / 483.8 MB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002592/0.8436, allocations: 347.3 kB / 484.1 MB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002203/0.8459, allocations: 211.7 kB / 484.4 MB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/0.8622, allocations: 6.186 MB / 490.5 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/0.8649, allocations: 67.97 kB / 490.6 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/0.8652, allocations: 64 kB / 490.7 MB, free: 11.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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.fire_n,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,$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 (139): * Single equations (assignments): 133 * 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.002022/0.8672, allocations: 0.5645 MB / 491.2 MB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005892/0.8678, allocations: 162 kB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006995/0.8749, allocations: 1.48 MB / 492.9 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.671e-05/0.875, allocations: 15.94 kB / 492.9 MB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.875, allocations: 0 / 492.9 MB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.4e-05/0.875, allocations: 11.97 kB / 492.9 MB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01351/0.8886, allocations: 3.156 MB / 496.1 MB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.8887, allocations: 4 kB / 496.1 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/0.8903, allocations: 124 kB / 496.2 MB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002483/0.8928, allocations: 326.3 kB / 496.5 MB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003032/0.8932, allocations: 28 kB / 496.5 MB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01586/0.9091, allocations: 6.168 MB / 0.4909 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.515e-06/0.9091, allocations: 4 kB / 0.4909 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008563/0.9177, allocations: 2.243 MB / 0.4931 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.9193, allocations: 371 kB / 0.4935 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005732/0.9199, allocations: 28 kB / 0.4935 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.9217, allocations: 51.97 kB / 0.4935 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005506/0.9222, allocations: 120.7 kB / 0.4937 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002026/0.9225, allocations: 47.98 kB / 0.4937 GB, free: 11.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003115/0.9256, allocations: 0.8879 MB / 0.4946 GB, free: 11.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.9256, allocations: 3.938 kB / 0.4946 GB, free: 11.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006596/0.9322, allocations: 0.754 MB / 0.4953 GB, free: 10.29 MB / 394.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,inductor.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,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.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,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * 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.001255/0.9335, allocations: 414.3 kB / 0.4957 GB, free: 9.871 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0107/0.9442, allocations: 3.355 MB / 0.499 GB, free: 6.367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/0.9443, allocations: 4 kB / 0.499 GB, free: 6.363 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004013/0.9483, allocations: 1.298 MB / 0.5002 GB, free: 5.004 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.9515, allocations: 317.2 kB / 0.5005 GB, free: 4.691 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.9637, allocations: 3.689 MB / 0.5042 GB, free: 0.957 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/0.9656, allocations: 1.348 MB / 0.5055 GB, free: 15.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00186/0.9675, allocations: 184.3 kB / 0.5056 GB, free: 15.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.968, allocations: 87.44 kB / 0.5057 GB, free: 15.31 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.968, allocations: 0 / 0.5057 GB, free: 15.31 MB / 410.7 MB Notification: Performance of Templates: time 0.3867/1.355, allocations: 26.88 MB / 0.532 GB, free: 108 MB / 410.7 MB