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_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_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.89/1.89, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003883/0.0003883, allocations: 8 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.09344, allocations: 44.5 MB / 308.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5453, allocations: 97.75 MB / 406.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/0.5457, allocations: 100.1 kB / 406.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1597/0.7054, allocations: 41.21 MB / 447.6 MB, free: 6.711 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.7054, allocations: 0 / 447.6 MB, free: 6.711 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001678/0.7056, allocations: 40 kB / 447.7 MB, free: 6.672 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.006732/0.7124, allocations: 2.044 MB / 449.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.7124, allocations: 12.03 kB / 449.7 MB, free: 4.676 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000842/0.7133, allocations: 232.9 kB / 449.9 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.7145, allocations: 269.3 kB / 450.2 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003916/0.7184, allocations: 1.199 MB / 451.4 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.7186, allocations: 119.9 kB / 451.5 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005426/0.7191, allocations: 168.6 kB / 451.7 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005188/0.7244, allocations: 1.689 MB / 453.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/0.7245, allocations: 4 kB / 453.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/0.7247, allocations: 66.75 kB / 453.4 MB, free: 1.895 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.248e-05/0.7248, allocations: 43.98 kB / 453.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004392/0.7292, allocations: 1.252 MB / 454.7 MB, free: 1.039 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/0.7445, allocations: 6.937 MB / 461.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002995/0.7476, allocations: 1.072 MB / 462.7 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.857e-05/0.7477, allocations: 16.94 kB / 462.8 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001911/0.7496, allocations: 0.7265 MB / 463.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 3.907e-06/0.7497, allocations: 0 / 463.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01398/0.7636, allocations: 4.166 MB / 467.7 MB, free: 3.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.7638, allocations: 196.9 kB / 467.8 MB, free: 3.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.7667, allocations: 1.189 MB / 469 MB, free: 2.395 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002693/0.767, allocations: 49.7 kB / 469.1 MB, free: 2.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008969/0.7679, allocations: 0.7474 MB / 469.8 MB, free: 1.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006209/0.7685, allocations: 378.7 kB / 470.2 MB, free: 1.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.7686, allocations: 32 kB / 470.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.7689, allocations: 362.8 kB / 470.6 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.7704, allocations: 455.8 kB / 471 MB, free: 376 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.7722, allocations: 0.8602 MB / 471.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/0.7739, allocations: 0.6092 MB / 472.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/0.7739, allocations: 8 kB / 472.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004656/0.7786, allocations: 1.668 MB / 474.2 MB, free: 12.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002354/0.781, allocations: 4.879 MB / 479.1 MB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.063e-05/0.7811, allocations: 12 kB / 479.1 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001798/0.7829, allocations: 342.4 kB / 479.4 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.7845, allocations: 223.7 kB / 479.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/0.7948, allocations: 6.179 MB / 485.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.7967, allocations: 83.94 kB / 485.9 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.7971, allocations: 68.06 kB / 485.9 MB, free: 428 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.7971, allocations: 4 kB / 486 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004465/0.8016, allocations: 1.612 MB / 487.6 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.8016, allocations: 12 kB / 487.6 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.803, allocations: 343.2 kB / 487.9 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.8043, allocations: 219.6 kB / 488.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009796/0.8142, allocations: 6.141 MB / 494.3 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.8154, allocations: 72.03 kB / 494.3 MB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.8155, allocations: 64 kB / 494.4 MB, free: 7.52 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.001475/0.817, allocations: 0.5638 MB / 495 MB, free: 6.934 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/0.8175, allocations: 166 kB / 495.1 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.8218, allocations: 1.468 MB / 496.6 MB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.8218, allocations: 16 kB / 496.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.8218, allocations: 0 / 496.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.121e-05/0.8218, allocations: 7.984 kB / 496.6 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007787/0.8296, allocations: 3.168 MB / 499.8 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.8297, allocations: 0 / 499.8 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009489/0.8306, allocations: 131.8 kB / 499.9 MB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/0.8321, allocations: 318.5 kB / 0.4885 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.8322, allocations: 28 kB / 0.4885 GB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.8423, allocations: 6.154 MB / 0.4945 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.8423, allocations: 7.984 kB / 0.4945 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006365/0.8487, allocations: 2.329 MB / 0.4968 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.8498, allocations: 370.9 kB / 0.4972 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003574/0.8502, allocations: 36 kB / 0.4972 GB, free: 8.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.8514, allocations: 51.95 kB / 0.4973 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004153/0.8519, allocations: 124.7 kB / 0.4974 GB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.852, allocations: 43.95 kB / 0.4974 GB, free: 7.855 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002124/0.8541, allocations: 0.8879 MB / 0.4983 GB, free: 6.969 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8542, allocations: 0 / 0.4983 GB, free: 6.969 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004054/0.8582, allocations: 0.75 MB / 0.499 GB, free: 6.219 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.007229/0.8655, allocations: 3.558 MB / 0.5025 GB, free: 2.562 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008573/0.8741, allocations: 3.363 MB / 0.5058 GB, free: 15.06 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/0.8742, allocations: 0 / 0.5058 GB, free: 15.06 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003962/0.8782, allocations: 1.286 MB / 0.507 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/0.8815, allocations: 319.3 kB / 0.5073 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2885/1.17, allocations: 13.48 MB / 0.5205 GB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/1.171, allocations: 1.351 MB / 0.5218 GB, free: 113.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/1.173, allocations: 0.6482 MB / 0.5224 GB, free: 113.4 MB / 410.7 MB Notification: Performance of SimCode: time 7.42e-07/1.173, allocations: 0 / 0.5224 GB, free: 113.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.658/4.831, allocations: 50.16 MB / 0.5714 GB, free: 99.55 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat