Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003584, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07842/0.0788, allocations: 44.51 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006879/0.08573, allocations: 4.712 MB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003178/0.08895, allocations: 1.51 MB / 314.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005374/0.08953, allocations: 19.88 kB / 314.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.08986, allocations: 119 kB / 314.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008119/0.09069, allocations: 323 kB / 315 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008619/0.09157, allocations: 227.6 kB / 315.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002542/0.09413, allocations: 0.8319 MB / 316.1 MB, free: 9.262 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.09572, allocations: 376.7 kB / 316.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.09691, allocations: 342.5 kB / 316.8 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.09795, allocations: 390.1 kB / 317.2 MB, free: 8.164 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/0.09821, allocations: 44 kB / 317.2 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.0985, allocations: 44 kB / 317.3 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003763/0.0989, allocations: 167.3 kB / 317.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004857/0.09941, allocations: 213.2 kB / 317.6 MB, free: 7.699 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002722/0.1022, allocations: 1.173 MB / 318.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.412e-06/0.1022, allocations: 0 / 318.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.245e-06/0.1022, allocations: 0 / 318.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.1022, allocations: 0 / 318.8 MB, free: 6.523 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.004445/0.1067, allocations: 1.148 MB / 320 MB, free: 5.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.394e-05/0.1068, allocations: 12.03 kB / 320 MB, free: 5.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004748/0.1073, allocations: 110.7 kB / 320.1 MB, free: 5.199 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.1097, allocations: 0.6136 MB / 320.7 MB, free: 4.543 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.11, allocations: 73.98 kB / 320.8 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003387/0.1103, allocations: 84 kB / 320.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004407/0.1148, allocations: 0.9475 MB / 321.8 MB, free: 3.395 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.909e-05/0.1149, allocations: 3.984 kB / 321.8 MB, free: 3.391 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/0.1151, allocations: 40 kB / 321.8 MB, free: 3.352 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.852e-05/0.1152, allocations: 20 kB / 321.9 MB, free: 3.332 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00407/0.1193, allocations: 0.73 MB / 322.6 MB, free: 2.602 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01279/0.1321, allocations: 3.72 MB / 326.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003887/0.136, allocations: 0.8076 MB / 327.1 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.1362, allocations: 12.64 kB / 327.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002189/0.1384, allocations: 471.3 kB / 327.6 MB, free: 13.45 MB / 282.7 MB Notification: Performance of pre-optimization done (n=82): time 6.748e-06/0.1384, allocations: 0 / 327.6 MB, free: 13.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=82): time 0.01367/0.1521, allocations: 1.783 MB / 329.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000166/0.1524, allocations: 119.5 kB / 329.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/0.1547, allocations: 0.6525 MB / 330.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001709/0.1549, allocations: 49.64 kB / 330.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006319/0.1555, allocations: 383 kB / 330.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005203/0.1561, allocations: 240.5 kB / 330.8 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1562, allocations: 16 kB / 330.8 MB, free: 10.15 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000309/0.1565, allocations: 342.8 kB / 331.1 MB, free: 9.809 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001512/0.1581, allocations: 261.9 kB / 331.4 MB, free: 9.555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/0.1599, allocations: 431.6 kB / 331.8 MB, free: 9.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/0.1615, allocations: 312.9 kB / 332.1 MB, free: 8.758 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.1615, allocations: 3.953 kB / 332.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004708/0.1662, allocations: 0.9131 MB / 333 MB, free: 7.824 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003514/0.1666, allocations: 240.4 kB / 333.3 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.1667, allocations: 8 kB / 333.3 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/0.169, allocations: 296.7 kB / 333.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009383/0.1699, allocations: 99.83 kB / 333.7 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/0.1812, allocations: 3.582 MB / 337.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007179/0.182, allocations: 91.2 kB / 337.3 MB, free: 3.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.761e-05/0.1821, allocations: 28 kB / 337.4 MB, free: 3.289 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.1821, allocations: 4 kB / 337.4 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002215/0.1844, allocations: 0.8578 MB / 338.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1844, allocations: 8 kB / 338.2 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.1855, allocations: 296.6 kB / 338.5 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.186, allocations: 95.98 kB / 338.6 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/0.193, allocations: 3.54 MB / 342.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005065/0.1935, allocations: 67.52 kB / 342.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.889e-05/0.1936, allocations: 28 kB / 342.3 MB, free: 14.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 65 * 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 {8 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006933/0.1943, allocations: 352.8 kB / 342.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.1946, allocations: 82.97 kB / 342.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.1948, allocations: 96.27 kB / 342.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.1948, allocations: 8 kB / 342.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.143e-06/0.1949, allocations: 4 kB / 342.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/0.1949, allocations: 7.969 kB / 342.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004315/0.1992, allocations: 1.963 MB / 344.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.811e-06/0.1993, allocations: 0 / 344.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.1997, allocations: 71.89 kB / 344.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.2008, allocations: 301.5 kB / 345.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.774e-05/0.2009, allocations: 16 kB / 345.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007132/0.208, allocations: 3.577 MB / 348.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.393e-06/0.2081, allocations: 0 / 348.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.2114, allocations: 1.364 MB / 350.1 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005243/0.212, allocations: 255.9 kB / 350.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.2121, allocations: 19.92 kB / 350.4 MB, free: 5.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000523/0.2127, allocations: 35.98 kB / 350.4 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/0.2129, allocations: 84.59 kB / 350.5 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.213, allocations: 20 kB / 350.5 MB, free: 5.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008238/0.2138, allocations: 451.1 kB / 350.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.55e-07/0.2139, allocations: 0 / 350.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001777/0.2156, allocations: 454.8 kB / 351.4 MB, free: 4.883 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$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,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {8 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002444/0.2159, allocations: 131.1 kB / 351.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004148/0.2201, allocations: 1.819 MB / 353.3 MB, free: 2.875 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.999e-06/0.2201, allocations: 4.25 kB / 353.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.2217, allocations: 0.6821 MB / 354 MB, free: 2.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009278/0.2226, allocations: 150.8 kB / 354.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.2271, allocations: 1.933 MB / 356.1 MB, free: 72 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009273/0.2281, allocations: 1.011 MB / 357.1 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.2283, allocations: 51.44 kB / 357.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of SimCode: time 1.552e-06/0.2283, allocations: 0 / 357.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of Templates: time 0.02541/0.2537, allocations: 14.56 MB / 371.7 MB, free: 436 kB / 314.7 MB