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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.00036, allocations: 15.94 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09586/0.09625, allocations: 44.51 MB / 308.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4055/0.5018, allocations: 79.87 MB / 388.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.5021, allocations: 85.17 kB / 388.5 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0514/0.5535, allocations: 14.77 MB / 403.3 MB, free: 11.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5536, allocations: 3.906 kB / 403.3 MB, free: 11.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.982e-05/0.5537, allocations: 19.47 kB / 403.3 MB, free: 11.9 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.002762/0.5565, allocations: 1.141 MB / 404.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.5565, allocations: 11.5 kB / 404.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002247/0.5568, allocations: 131 kB / 404.6 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002242/0.557, allocations: 116.3 kB / 404.7 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.5582, allocations: 0.6425 MB / 405.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.89e-05/0.5583, allocations: 65.09 kB / 405.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.5585, allocations: 86.53 kB / 405.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.5608, allocations: 0.9419 MB / 406.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.5608, allocations: 0 / 406.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.561, allocations: 36.95 kB / 406.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.561, allocations: 27.42 kB / 406.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/0.5631, allocations: 0.7333 MB / 407.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006429/0.5695, allocations: 3.713 MB / 411 MB, free: 8.117 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.5715, allocations: 0.7855 MB / 411.7 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.367e-05/0.5716, allocations: 12.44 kB / 411.7 MB, free: 8.016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.5727, allocations: 463.4 kB / 412.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 3.286e-06/0.5727, allocations: 0 / 412.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.008175/0.5809, allocations: 1.7 MB / 413.9 MB, free: 7.297 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.581, allocations: 118.4 kB / 414 MB, free: 7.168 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.5822, allocations: 0.602 MB / 414.6 MB, free: 6.961 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.5824, allocations: 44.05 kB / 414.7 MB, free: 6.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002737/0.5826, allocations: 373.2 kB / 415 MB, free: 6.688 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.5829, allocations: 243.1 kB / 415.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/0.583, allocations: 15.16 kB / 415.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.5831, allocations: 344.7 kB / 415.6 MB, free: 6.199 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007894/0.5839, allocations: 268.8 kB / 415.9 MB, free: 6.164 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008896/0.5848, allocations: 413.4 kB / 416.3 MB, free: 5.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008368/0.5856, allocations: 309.1 kB / 416.6 MB, free: 5.926 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.286e-05/0.5857, allocations: 0 / 416.6 MB, free: 5.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002345/0.588, allocations: 0.9079 MB / 417.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002846/0.5883, allocations: 1.342 MB / 418.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.5883, allocations: 3.969 kB / 418.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.5897, allocations: 292.9 kB / 419.1 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006856/0.5904, allocations: 100.8 kB / 419.2 MB, free: 4.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006656/0.5971, allocations: 3.581 MB / 422.8 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.5981, allocations: 92.25 kB / 422.9 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.473e-05/0.5982, allocations: 26.44 kB / 422.9 MB, free: 2.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.5982, allocations: 3.906 kB / 422.9 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002089/0.6003, allocations: 0.8483 MB / 423.8 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.6004, allocations: 3.875 kB / 423.8 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.6015, allocations: 294.8 kB / 424.1 MB, free: 2.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.6021, allocations: 92.89 kB / 424.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006568/0.6087, allocations: 3.538 MB / 427.7 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007069/0.6094, allocations: 63.67 kB / 427.8 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.834e-05/0.6095, allocations: 25.81 kB / 427.8 MB, free: 0.5938 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.0007365/0.6103, allocations: 353.3 kB / 428.1 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.6105, allocations: 85.97 kB / 428.2 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002568/0.6108, allocations: 99.88 kB / 428.3 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.6108, allocations: 11.75 kB / 428.3 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6108, allocations: 0 / 428.3 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.6108, allocations: 3.984 kB / 428.3 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004318/0.6152, allocations: 1.929 MB / 430.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.6152, allocations: 3.75 kB / 430.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005229/0.6157, allocations: 60.5 kB / 430.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.617, allocations: 299.7 kB / 430.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-05/0.6171, allocations: 15.86 kB / 430.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007601/0.6247, allocations: 3.568 MB / 434.2 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6248, allocations: 3.938 kB / 434.2 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.6282, allocations: 1.324 MB / 435.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005878/0.6289, allocations: 255.8 kB / 435.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.629, allocations: 15.22 kB / 435.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007454/0.6298, allocations: 46.44 kB / 435.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.6301, allocations: 76.53 kB / 435.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.191e-05/0.6302, allocations: 31.98 kB / 435.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009604/0.6312, allocations: 472.6 kB / 436.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6312, allocations: 0 / 436.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00177/0.633, allocations: 432.5 kB / 436.8 MB, free: 10.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (50): * Single equations (assignments): 43 * 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.003852/0.6368, allocations: 1.92 MB / 438.7 MB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004617/0.6415, allocations: 1.798 MB / 440.5 MB, free: 8.266 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.6416, allocations: 0 / 440.5 MB, free: 8.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001681/0.6432, allocations: 0.6713 MB / 441.2 MB, free: 7.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.6444, allocations: 143.1 kB / 441.3 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007118/0.6515, allocations: 4.565 MB / 445.9 MB, free: 3.855 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007909/0.6524, allocations: 1.004 MB / 446.9 MB, free: 3.016 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006948/0.6531, allocations: 302.2 kB / 447.2 MB, free: 2.762 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6531, allocations: 4 kB / 447.2 MB, free: 2.758 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.065/3.718, allocations: 18.15 MB / 465.4 MB, free: 0.7344 MB / 346.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_R_res.mat does not exist to compare? outputFormat=mat