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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.163/2.163, allocations: 194.8 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003578, allocations: 8 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2924, allocations: 44.5 MB / 308.6 MB, free: 12.54 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2054/0.4979, allocations: 97.75 MB / 406.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003773/0.4983, allocations: 95.94 kB / 406.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4224/0.9207, allocations: 41.23 MB / 447.7 MB, free: 77.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.9208, allocations: 0 / 447.7 MB, free: 77.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001639/0.921, allocations: 43.98 kB / 447.7 MB, free: 77.46 MB / 346.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.006135/0.9271, allocations: 2.036 MB / 449.7 MB, free: 75.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.9272, allocations: 12.03 kB / 449.7 MB, free: 75.33 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007479/0.9279, allocations: 232.2 kB / 450 MB, free: 75.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.929, allocations: 269.2 kB / 450.2 MB, free: 74.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003591/0.9326, allocations: 1.194 MB / 451.4 MB, free: 73.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.9328, allocations: 123.1 kB / 451.5 MB, free: 73.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004872/0.9333, allocations: 160 kB / 451.7 MB, free: 73.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004858/0.9382, allocations: 1.692 MB / 453.4 MB, free: 71.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.585e-05/0.9383, allocations: 15.83 kB / 453.4 MB, free: 71.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.9386, allocations: 64 kB / 453.5 MB, free: 71.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.461e-05/0.9386, allocations: 44 kB / 453.5 MB, free: 71.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004196/0.9428, allocations: 1.249 MB / 454.8 MB, free: 70.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01411/0.957, allocations: 6.943 MB / 461.7 MB, free: 62.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002777/0.9598, allocations: 1.079 MB / 462.8 MB, free: 61.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.96, allocations: 9 kB / 462.8 MB, free: 61.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001835/0.9618, allocations: 0.7266 MB / 463.5 MB, free: 61.08 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.949e-06/0.9619, allocations: 0 / 463.5 MB, free: 61.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01307/0.975, allocations: 4.17 MB / 467.7 MB, free: 56.72 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/0.9751, allocations: 200.9 kB / 467.9 MB, free: 56.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/0.9776, allocations: 1.177 MB / 469.1 MB, free: 55.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002718/0.9779, allocations: 57.69 kB / 469.1 MB, free: 55.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007809/0.9787, allocations: 0.7856 MB / 469.9 MB, free: 54.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005573/0.9793, allocations: 378.6 kB / 470.3 MB, free: 54.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.9794, allocations: 28 kB / 470.3 MB, free: 54.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.9795, allocations: 365.9 kB / 470.7 MB, free: 53.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.981, allocations: 459.8 kB / 471.1 MB, free: 53.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.9828, allocations: 0.8562 MB / 472 MB, free: 52.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.9845, allocations: 0.617 MB / 472.6 MB, free: 51.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/0.9845, allocations: 4 kB / 472.6 MB, free: 51.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004899/0.9894, allocations: 1.753 MB / 474.3 MB, free: 49.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.9906, allocations: 4.971 MB / 479.3 MB, free: 44.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.663e-05/0.9906, allocations: 16 kB / 479.3 MB, free: 44.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.9923, allocations: 327.8 kB / 479.6 MB, free: 44.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.9938, allocations: 235.6 kB / 479.9 MB, free: 43.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0084/1.002, allocations: 6.173 MB / 486.1 MB, free: 37.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/1.004, allocations: 67.94 kB / 486.1 MB, free: 37.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002402/1.004, allocations: 67.98 kB / 486.2 MB, free: 37.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/1.004, allocations: 4 kB / 486.2 MB, free: 37.2 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003989/1.008, allocations: 1.628 MB / 487.8 MB, free: 35.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/1.008, allocations: 12 kB / 487.8 MB, free: 35.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/1.01, allocations: 345.6 kB / 488.2 MB, free: 35.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/1.011, allocations: 219.6 kB / 488.4 MB, free: 34.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008225/1.019, allocations: 6.175 MB / 494.6 MB, free: 28.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/1.021, allocations: 68.03 kB / 494.6 MB, free: 28.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002106/1.022, allocations: 64 kB / 494.7 MB, free: 28.27 MB / 346.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.001279/1.023, allocations: 0.5602 MB / 495.2 MB, free: 27.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/1.023, allocations: 170 kB / 495.4 MB, free: 27.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/1.027, allocations: 1.468 MB / 496.9 MB, free: 26.01 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/1.027, allocations: 12 kB / 496.9 MB, free: 26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/1.027, allocations: 0 / 496.9 MB, free: 26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.173e-05/1.027, allocations: 11.97 kB / 496.9 MB, free: 25.99 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007388/1.035, allocations: 3.166 MB / 0.4883 GB, free: 22.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/1.035, allocations: 0 / 0.4883 GB, free: 22.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009672/1.036, allocations: 128 kB / 0.4885 GB, free: 22.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/1.037, allocations: 332 kB / 0.4888 GB, free: 22.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/1.037, allocations: 27.98 kB / 0.4888 GB, free: 22.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008201/1.046, allocations: 6.164 MB / 0.4948 GB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/1.046, allocations: 7.938 kB / 0.4948 GB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005625/1.051, allocations: 2.333 MB / 0.4971 GB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/1.052, allocations: 378.9 kB / 0.4975 GB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/1.053, allocations: 32 kB / 0.4975 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/1.054, allocations: 51.97 kB / 0.4976 GB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003609/1.054, allocations: 108.8 kB / 0.4977 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.055, allocations: 51.97 kB / 0.4977 GB, free: 12.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001798/1.056, allocations: 0.8917 MB / 0.4986 GB, free: 11.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.056, allocations: 0 / 0.4986 GB, free: 11.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007267/1.064, allocations: 0.7577 MB / 0.4993 GB, free: 10.95 MB / 346.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.01038/1.074, allocations: 3.533 MB / 0.5028 GB, free: 7.312 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01095/1.085, allocations: 3.367 MB / 0.5061 GB, free: 3.801 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/1.085, allocations: 0 / 0.5061 GB, free: 3.801 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004253/1.089, allocations: 1.295 MB / 0.5073 GB, free: 2.445 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/1.093, allocations: 325.1 kB / 0.5076 GB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02297/1.116, allocations: 13.44 MB / 0.5208 GB, free: 4.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002276/1.119, allocations: 1.352 MB / 0.5221 GB, free: 2.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002113/1.121, allocations: 184.3 kB / 0.5223 GB, free: 2.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/1.123, allocations: 0.6399 MB / 0.5229 GB, free: 1.945 MB / 362.7 MB Notification: Performance of SimCode: time 1.874e-06/1.123, allocations: 4 kB / 0.5229 GB, free: 1.941 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4729/1.596, allocations: 40.71 MB / 0.5626 GB, free: 115.5 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002601/1.596, allocations: 237.3 kB / 0.5629 GB, free: 115.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.688/6.284, allocations: 2.219 kB / 0.5629 GB, free: 115.3 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat