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.DCDC.HBridge.HBridge_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: 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.915/1.915, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003793/0.0003794, allocations: 11.98 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09592/0.09634, allocations: 44.49 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5193, allocations: 79.88 MB / 388.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004543/0.5198, allocations: 89.34 kB / 388.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05266/0.5725, allocations: 14.77 MB / 403.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5726, allocations: 0 / 403.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.862e-05/0.5727, allocations: 23.41 kB / 403.7 MB, free: 12.26 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.003211/0.5759, allocations: 1.132 MB / 404.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.576, allocations: 7.75 kB / 404.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004305/0.5764, allocations: 116.8 kB / 405 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.5779, allocations: 0.6378 MB / 405.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.679e-05/0.578, allocations: 69.25 kB / 405.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.5782, allocations: 81.16 kB / 405.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.5808, allocations: 0.9608 MB / 406.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.321e-05/0.5809, allocations: 0 / 406.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.581, allocations: 35.09 kB / 406.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.581, allocations: 23.19 kB / 406.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00242/0.5835, allocations: 0.729 MB / 407.5 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008026/0.5915, allocations: 3.722 MB / 411.2 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.5939, allocations: 0.8067 MB / 412.1 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.5941, allocations: 12.17 kB / 412.1 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.5954, allocations: 478.1 kB / 412.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=82): time 3.697e-06/0.5954, allocations: 0 / 412.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.008958/0.6044, allocations: 1.763 MB / 414.3 MB, free: 7.695 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.6045, allocations: 118.5 kB / 414.4 MB, free: 7.566 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.6057, allocations: 0.6491 MB / 415.1 MB, free: 7.352 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.6059, allocations: 46.7 kB / 415.1 MB, free: 7.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002882/0.6062, allocations: 373.2 kB / 415.5 MB, free: 7.082 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/0.6065, allocations: 238.9 kB / 415.7 MB, free: 6.918 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/0.6066, allocations: 19.12 kB / 415.7 MB, free: 6.914 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.6067, allocations: 339.1 kB / 416.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009039/0.6076, allocations: 263 kB / 416.3 MB, free: 6.562 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009945/0.6086, allocations: 422.9 kB / 416.7 MB, free: 6.375 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009106/0.6096, allocations: 309.1 kB / 417 MB, free: 6.316 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.6096, allocations: 0 / 417 MB, free: 6.316 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002561/0.6122, allocations: 0.9068 MB / 417.9 MB, free: 6.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001394/0.6123, allocations: 228.6 kB / 418.2 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.6124, allocations: 3.812 kB / 418.2 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.6137, allocations: 290.6 kB / 418.4 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.6145, allocations: 96.67 kB / 418.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007221/0.6217, allocations: 3.579 MB / 422.1 MB, free: 4.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.6228, allocations: 92.56 kB / 422.2 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.323e-05/0.6229, allocations: 22.78 kB / 422.2 MB, free: 4.051 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.6229, allocations: 3.875 kB / 422.2 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002315/0.6253, allocations: 0.8421 MB / 423.1 MB, free: 3.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.6253, allocations: 3.906 kB / 423.1 MB, free: 3.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.6265, allocations: 293.3 kB / 423.4 MB, free: 3.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006933/0.6272, allocations: 89.2 kB / 423.5 MB, free: 3.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007317/0.6346, allocations: 3.542 MB / 427 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.6353, allocations: 61.39 kB / 427.1 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-05/0.6354, allocations: 25.88 kB / 427.1 MB, free: 2.156 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 62 * 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.0007954/0.6362, allocations: 347.6 kB / 427.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002659/0.6365, allocations: 85.59 kB / 427.5 MB, free: 1.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002958/0.6368, allocations: 99.02 kB / 427.6 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.6368, allocations: 15.58 kB / 427.6 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.6369, allocations: 0 / 427.6 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.6369, allocations: 3.984 kB / 427.6 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004499/0.6414, allocations: 1.977 MB / 429.6 MB, free: 472 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.6414, allocations: 0 / 429.6 MB, free: 472 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.642, allocations: 73.22 kB / 429.7 MB, free: 452 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.6433, allocations: 302.7 kB / 430 MB, free: 288 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.724e-05/0.6435, allocations: 15.95 kB / 430 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007872/0.6514, allocations: 3.558 MB / 433.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.6514, allocations: 11.89 kB / 433.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004008/0.6554, allocations: 1.386 MB / 434.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000658/0.6562, allocations: 254.9 kB / 435.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/0.6564, allocations: 23.77 kB / 435.2 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007599/0.6572, allocations: 39.5 kB / 435.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003307/0.6575, allocations: 91.58 kB / 435.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-05/0.6576, allocations: 23.38 kB / 435.4 MB, free: 12.37 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009128/0.6585, allocations: 449.3 kB / 435.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6585, allocations: 0 / 435.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001892/0.6604, allocations: 434.6 kB / 436.2 MB, free: 12.02 MB / 330.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.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) * 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.000333/0.6608, allocations: 149.7 kB / 436.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005162/0.666, allocations: 1.82 MB / 438.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/0.6661, allocations: 0 / 438.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.6681, allocations: 0.6866 MB / 438.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.6695, allocations: 156.9 kB / 439 MB, free: 10.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005684/0.6752, allocations: 1.909 MB / 440.9 MB, free: 8.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00084/0.6761, allocations: 1.019 MB / 442 MB, free: 8.125 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003206/0.6765, allocations: 50 kB / 442 MB, free: 8.117 MB / 330.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6765, allocations: 0 / 442 MB, free: 8.117 MB / 330.7 MB Notification: Performance of Templates: time 0.03408/0.7106, allocations: 14.61 MB / 456.6 MB, free: 10.27 MB / 346.7 MB