Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002388/0.002388, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.238/2.238, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 78.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.707e-05/3.725e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09842, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4576/0.556, allocations: 104 MB / 473.2 MB, free: 5.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/0.5564, allocations: 91.94 kB / 473.3 MB, free: 5.434 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2075/0.7639, allocations: 42.1 MB / 0.5033 GB, free: 12.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.764, allocations: 0 / 0.5033 GB, free: 12.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002755/0.7643, allocations: 40 kB / 0.5033 GB, free: 12.6 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.008832/0.7732, allocations: 1.834 MB / 0.5051 GB, free: 10.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.977e-05/0.7733, allocations: 12.03 kB / 0.5051 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001113/0.7744, allocations: 228.3 kB / 0.5054 GB, free: 10.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002082/0.7765, allocations: 261.3 kB / 0.5056 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006455/0.7831, allocations: 1.198 MB / 0.5068 GB, free: 8.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000277/0.7834, allocations: 119.5 kB / 0.5069 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009006/0.7843, allocations: 167.9 kB / 0.5071 GB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008745/0.7931, allocations: 1.665 MB / 0.5087 GB, free: 6.898 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.7933, allocations: 11.88 kB / 0.5087 GB, free: 6.887 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004754/0.7938, allocations: 71.98 kB / 0.5088 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.411e-05/0.7939, allocations: 40 kB / 0.5088 GB, free: 6.777 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007193/0.8011, allocations: 1.195 MB / 0.51 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02778/0.829, allocations: 6.954 MB / 0.5168 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004549/0.8336, allocations: 1.039 MB / 0.5178 GB, free: 13.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003173/0.8368, allocations: 0.6494 MB / 0.5184 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002036/0.8371, allocations: 13 kB / 0.5184 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003192/0.8403, allocations: 0.7227 MB / 0.5191 GB, free: 11.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 8.376e-06/0.8404, allocations: 0 / 0.5191 GB, free: 11.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.01477/0.8552, allocations: 3.044 MB / 0.5221 GB, free: 8.738 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002227/0.8555, allocations: 204.9 kB / 0.5223 GB, free: 8.496 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00492/0.8604, allocations: 1.173 MB / 0.5234 GB, free: 7.316 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004343/0.8609, allocations: 65.62 kB / 0.5235 GB, free: 7.246 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.8625, allocations: 0.7513 MB / 0.5242 GB, free: 6.484 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/0.8636, allocations: 378.6 kB / 0.5246 GB, free: 6.109 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.8639, allocations: 28 kB / 0.5246 GB, free: 6.082 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003292/0.8643, allocations: 366.8 kB / 0.525 GB, free: 5.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/0.8667, allocations: 436 kB / 0.5254 GB, free: 5.289 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003089/0.8699, allocations: 0.8368 MB / 0.5262 GB, free: 4.273 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.8721, allocations: 0.5876 MB / 0.5268 GB, free: 3.672 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.8722, allocations: 4 kB / 0.5268 GB, free: 3.668 MB / 410.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005208/0.8774, allocations: 1.723 MB / 0.5285 GB, free: 1.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3032/1.181, allocations: 4.88 MB / 0.5332 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.285e-05/1.181, allocations: 12.11 kB / 0.5332 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002786/1.184, allocations: 344.4 kB / 0.5336 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002268/1.186, allocations: 224.1 kB / 0.5338 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/1.2, allocations: 6.11 MB / 0.5398 GB, free: 99.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/1.204, allocations: 82.16 kB / 0.5398 GB, free: 99.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005277/1.204, allocations: 65.95 kB / 0.5399 GB, free: 99.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/1.204, allocations: 3.344 kB / 0.5399 GB, free: 99.75 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008013/1.212, allocations: 1.712 MB / 0.5416 GB, free: 99.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.625e-05/1.212, allocations: 11.69 kB / 0.5416 GB, free: 99.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/1.215, allocations: 335.8 kB / 0.5419 GB, free: 99.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/1.217, allocations: 220 kB / 0.5421 GB, free: 99.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/1.231, allocations: 6.084 MB / 0.5481 GB, free: 95.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/1.233, allocations: 66.05 kB / 0.5481 GB, free: 95.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000319/1.234, allocations: 72.06 kB / 0.5482 GB, free: 95.62 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 134 * 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%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005938/1.234, allocations: 279.9 kB / 0.5485 GB, free: 95.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004949/1.235, allocations: 167.9 kB / 0.5486 GB, free: 95.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004617/1.24, allocations: 1.534 MB / 0.5501 GB, free: 95.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-05/1.24, allocations: 11.72 kB / 0.5501 GB, free: 95.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/1.24, allocations: 1.312 kB / 0.5501 GB, free: 95.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.962e-05/1.24, allocations: 13.14 kB / 0.5501 GB, free: 95.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009318/1.249, allocations: 3.239 MB / 0.5533 GB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/1.249, allocations: 2.094 kB / 0.5533 GB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/1.25, allocations: 118.6 kB / 0.5534 GB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/1.252, allocations: 335.1 kB / 0.5537 GB, free: 94.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/1.252, allocations: 34.94 kB / 0.5538 GB, free: 94.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008951/1.261, allocations: 6.092 MB / 0.5597 GB, free: 90.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.261, allocations: 2.25 kB / 0.5597 GB, free: 90.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006354/1.267, allocations: 2.397 MB / 0.5621 GB, free: 89.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/1.269, allocations: 376.7 kB / 0.5624 GB, free: 88.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005315/1.269, allocations: 32.88 kB / 0.5624 GB, free: 88.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/1.271, allocations: 58.25 kB / 0.5625 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005121/1.272, allocations: 107.5 kB / 0.5626 GB, free: 88.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.272, allocations: 48.67 kB / 0.5627 GB, free: 88.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002018/1.274, allocations: 0.8836 MB / 0.5635 GB, free: 88.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.212e-06/1.274, allocations: 0 / 0.5635 GB, free: 88.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004412/1.278, allocations: 0.7564 MB / 0.5643 GB, free: 88.23 MB / 410.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 71 * 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%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.006533/1.285, allocations: 3.578 MB / 0.5677 GB, free: 86.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007214/1.292, allocations: 3.275 MB / 0.5709 GB, free: 84.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/1.292, allocations: 7.562 kB / 0.571 GB, free: 84.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002796/1.295, allocations: 1.252 MB / 0.5722 GB, free: 83.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/1.298, allocations: 319.1 kB / 0.5725 GB, free: 83.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009477/1.307, allocations: 2.724 MB / 0.5751 GB, free: 81.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/1.308, allocations: 1.353 MB / 0.5765 GB, free: 81.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/1.31, allocations: 0.6473 MB / 0.5771 GB, free: 80.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.413e-06/1.31, allocations: 0 / 0.5771 GB, free: 80.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.607/4.917, allocations: 51.09 MB / 0.627 GB, free: 49.62 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive_fmu --startTime=0 --stopTime=24 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat