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.001581/0.00158, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.925/1.925, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001134/0.001134, allocations: 97.48 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003847, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.33, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1661/0.4962, allocations: 104.1 MB / 478.7 MB, free: 8.516 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/0.4966, allocations: 95.89 kB / 478.8 MB, free: 8.422 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4493/0.9459, allocations: 42.07 MB / 0.5087 GB, free: 95.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.946, allocations: 0 / 0.5087 GB, free: 95.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000171/0.9461, allocations: 47.84 kB / 0.5087 GB, free: 95.85 MB / 378.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.006736/0.9529, allocations: 2.062 MB / 0.5108 GB, free: 94.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.953, allocations: 7.688 kB / 0.5108 GB, free: 94.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007899/0.9538, allocations: 235 kB / 0.511 GB, free: 94.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/0.9549, allocations: 261.6 kB / 0.5112 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003806/0.9588, allocations: 1.216 MB / 0.5124 GB, free: 93.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.9589, allocations: 113.9 kB / 0.5125 GB, free: 93.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003637/0.9593, allocations: 170.9 kB / 0.5127 GB, free: 93.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004755/0.9641, allocations: 1.712 MB / 0.5144 GB, free: 92.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.019e-05/0.9642, allocations: 7.844 kB / 0.5144 GB, free: 92.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002462/0.9645, allocations: 67.44 kB / 0.5144 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.515e-05/0.9645, allocations: 39.12 kB / 0.5145 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004306/0.9688, allocations: 1.265 MB / 0.5157 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.9829, allocations: 6.971 MB / 0.5225 GB, free: 87.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002696/0.9856, allocations: 1.081 MB / 0.5236 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.9858, allocations: 17.39 kB / 0.5236 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001771/0.9876, allocations: 0.7431 MB / 0.5243 GB, free: 86.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.998e-06/0.9876, allocations: 0 / 0.5243 GB, free: 86.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.0137/1.001, allocations: 4.357 MB / 0.5286 GB, free: 84.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/1.001, allocations: 199 kB / 0.5288 GB, free: 84.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/1.004, allocations: 1.186 MB / 0.5299 GB, free: 83.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002698/1.004, allocations: 49.7 kB / 0.53 GB, free: 83.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006325/1.005, allocations: 0.7581 MB / 0.5307 GB, free: 82.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004586/1.005, allocations: 387.7 kB / 0.5311 GB, free: 82.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/1.006, allocations: 32 kB / 0.5311 GB, free: 82.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/1.006, allocations: 365.5 kB / 0.5315 GB, free: 82.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/1.007, allocations: 465.2 kB / 0.5319 GB, free: 81.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/1.009, allocations: 0.8718 MB / 0.5328 GB, free: 80.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/1.01, allocations: 0.6209 MB / 0.5334 GB, free: 80.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/1.01, allocations: 4 kB / 0.5334 GB, free: 80.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004758/1.015, allocations: 1.778 MB / 0.5351 GB, free: 78.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001174/1.016, allocations: 4.88 MB / 0.5399 GB, free: 73.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-05/1.016, allocations: 12 kB / 0.5399 GB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/1.018, allocations: 349 kB / 0.5402 GB, free: 72.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/1.02, allocations: 227.6 kB / 0.5404 GB, free: 72.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008346/1.028, allocations: 6.17 MB / 0.5465 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/1.03, allocations: 71.94 kB / 0.5465 GB, free: 65.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/1.03, allocations: 71.98 kB / 0.5466 GB, free: 65.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/1.03, allocations: 4 kB / 0.5466 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004113/1.034, allocations: 1.75 MB / 0.5483 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/1.034, allocations: 16 kB / 0.5483 GB, free: 63.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/1.035, allocations: 330.5 kB / 0.5486 GB, free: 63.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/1.037, allocations: 223.8 kB / 0.5488 GB, free: 63.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007814/1.045, allocations: 6.146 MB / 0.5549 GB, free: 56.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/1.046, allocations: 64.05 kB / 0.5549 GB, free: 56.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/1.046, allocations: 64 kB / 0.555 GB, free: 56.75 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 (141): * Single equations (assignments): 135 * 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.001243/1.047, allocations: 0.5641 MB / 0.5555 GB, free: 56.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/1.048, allocations: 173.9 kB / 0.5557 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004072/1.052, allocations: 1.601 MB / 0.5573 GB, free: 54.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/1.052, allocations: 12 kB / 0.5573 GB, free: 54.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.052, allocations: 0 / 0.5573 GB, free: 54.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/1.052, allocations: 3.984 kB / 0.5573 GB, free: 54.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006819/1.059, allocations: 3.292 MB / 0.5605 GB, free: 50.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/1.059, allocations: 3.984 kB / 0.5605 GB, free: 50.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009309/1.059, allocations: 123.8 kB / 0.5606 GB, free: 50.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001357/1.061, allocations: 326.4 kB / 0.5609 GB, free: 50.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/1.061, allocations: 31.98 kB / 0.5609 GB, free: 50.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008093/1.069, allocations: 6.146 MB / 0.5669 GB, free: 43.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/1.069, allocations: 7.984 kB / 0.567 GB, free: 43.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005744/1.075, allocations: 2.482 MB / 0.5694 GB, free: 41.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/1.076, allocations: 371.3 kB / 0.5697 GB, free: 40.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/1.076, allocations: 36 kB / 0.5698 GB, free: 40.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/1.078, allocations: 55.95 kB / 0.5698 GB, free: 40.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003947/1.078, allocations: 116.8 kB / 0.5699 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/1.078, allocations: 47.94 kB / 0.57 GB, free: 40.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0028/1.081, allocations: 0.896 MB / 0.5709 GB, free: 39.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.081, allocations: 0 / 0.5709 GB, free: 39.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003841/1.085, allocations: 0.754 MB / 0.5716 GB, free: 39.05 MB / 378.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 (83): * Single equations (assignments): 72 * 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.006344/1.091, allocations: 3.669 MB / 0.5752 GB, free: 35.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006746/1.098, allocations: 3.359 MB / 0.5785 GB, free: 31.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/1.098, allocations: 7.75 kB / 0.5785 GB, free: 31.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002573/1.101, allocations: 1.286 MB / 0.5797 GB, free: 30.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002339/1.103, allocations: 325.5 kB / 0.58 GB, free: 30.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/1.116, allocations: 13.53 MB / 0.5932 GB, free: 16.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/1.117, allocations: 1.359 MB / 0.5946 GB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/1.118, allocations: 0.6516 MB / 0.5952 GB, free: 14.03 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/1.118, allocations: 0 / 0.5952 GB, free: 14.03 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.469/4.587, allocations: 50.54 MB / 0.6446 GB, free: 11.39 MB / 426.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