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.001491/0.001491, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 87.97 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.838e-05, allocations: 11.92 kB / 314.9 MB, free: 9.027 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.34, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1793/0.5194, allocations: 103.3 MB / 465.8 MB, free: 14.81 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/0.5198, allocations: 87.95 kB / 465.9 MB, free: 14.72 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1813/0.7011, allocations: 41.59 MB / 0.4956 GB, free: 4.961 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.7012, allocations: 0 / 0.4956 GB, free: 4.961 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002006/0.7014, allocations: 40 kB / 0.4956 GB, free: 4.922 MB / 395.1 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.006068/0.7075, allocations: 1.83 MB / 0.4974 GB, free: 3.016 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.7076, allocations: 8.031 kB / 0.4974 GB, free: 3.008 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/0.7091, allocations: 261.3 kB / 0.4977 GB, free: 2.75 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004145/0.7132, allocations: 1.198 MB / 0.4988 GB, free: 1.496 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.7134, allocations: 52.34 kB / 0.4989 GB, free: 1.445 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005764/0.714, allocations: 111.8 kB / 0.499 GB, free: 1.336 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004044/0.7181, allocations: 1.084 MB / 0.5 GB, free: 256 kB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2778/0.9959, allocations: 1.439 MB / 0.5015 GB, free: 99.78 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.871e-05/0.9961, allocations: 6.266 kB / 0.5015 GB, free: 99.78 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/0.9963, allocations: 5.281 kB / 0.5015 GB, free: 99.78 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-05/0.9964, allocations: 39.34 kB / 0.5015 GB, free: 99.78 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/1.013, allocations: 6.631 MB / 0.508 GB, free: 97.23 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002552/1.015, allocations: 0.9749 MB / 0.5089 GB, free: 97.2 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/1.017, allocations: 0.622 MB / 0.5095 GB, free: 97.18 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/1.017, allocations: 15.28 kB / 0.5096 GB, free: 97.18 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00161/1.019, allocations: 0.6825 MB / 0.5102 GB, free: 97.03 MB / 395.1 MB Notification: Performance of pre-optimization done (n=122): time 4.298e-06/1.019, allocations: 0 / 0.5102 GB, free: 97.03 MB / 395.1 MB Notification: Performance of matching and sorting (n=125): time 0.008278/1.027, allocations: 2.703 MB / 0.5129 GB, free: 96.38 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.027, allocations: 206.1 kB / 0.5131 GB, free: 96.16 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/1.029, allocations: 0.922 MB / 0.514 GB, free: 96.01 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003063/1.03, allocations: 38.02 kB / 0.514 GB, free: 95.98 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007489/1.031, allocations: 0.7691 MB / 0.5147 GB, free: 95.63 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005573/1.031, allocations: 375.1 kB / 0.5151 GB, free: 95.44 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.449e-05/1.031, allocations: 1.688 kB / 0.5151 GB, free: 95.44 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/1.031, allocations: 365.1 kB / 0.5154 GB, free: 95.13 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/1.032, allocations: 409.5 kB / 0.5158 GB, free: 95.12 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/1.034, allocations: 0.798 MB / 0.5166 GB, free: 94.65 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/1.035, allocations: 494.1 kB / 0.5171 GB, free: 94.64 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/1.035, allocations: 4.469 kB / 0.5171 GB, free: 94.64 MB / 395.1 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004305/1.04, allocations: 1.497 MB / 0.5186 GB, free: 94.52 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001144/1.041, allocations: 4.89 MB / 0.5233 GB, free: 89.35 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.187e-05/1.041, allocations: 14.34 kB / 0.5233 GB, free: 89.35 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/1.043, allocations: 333.3 kB / 0.5237 GB, free: 89.23 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/1.044, allocations: 226.8 kB / 0.5239 GB, free: 89.22 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00805/1.052, allocations: 5.909 MB / 0.5297 GB, free: 84.29 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/1.054, allocations: 50.77 kB / 0.5297 GB, free: 84.29 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/1.055, allocations: 77.52 kB / 0.5298 GB, free: 84.27 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/1.055, allocations: 7.125 kB / 0.5298 GB, free: 84.27 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003735/1.058, allocations: 1.444 MB / 0.5312 GB, free: 83.82 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.083e-05/1.058, allocations: 11.84 kB / 0.5312 GB, free: 83.82 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/1.06, allocations: 329.2 kB / 0.5315 GB, free: 83.69 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/1.061, allocations: 219.2 kB / 0.5317 GB, free: 83.68 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007433/1.068, allocations: 5.869 MB / 0.5375 GB, free: 78.75 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/1.07, allocations: 36.41 kB / 0.5375 GB, free: 78.75 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/1.07, allocations: 70.48 kB / 0.5376 GB, free: 78.73 MB / 395.1 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.000499/1.07, allocations: 230.7 kB / 0.5378 GB, free: 78.53 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003529/1.074, allocations: 1.322 MB / 0.5391 GB, free: 78 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004565/1.074, allocations: 153.4 kB / 0.5392 GB, free: 77.92 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003598/1.078, allocations: 1.358 MB / 0.5405 GB, free: 77.39 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/1.078, allocations: 11.66 kB / 0.5406 GB, free: 77.39 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.078, allocations: 3.844 kB / 0.5406 GB, free: 77.39 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/1.078, allocations: 7.844 kB / 0.5406 GB, free: 77.39 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007151/1.085, allocations: 2.877 MB / 0.5434 GB, free: 76.06 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/1.085, allocations: 0 / 0.5434 GB, free: 76.06 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009579/1.086, allocations: 133.3 kB / 0.5435 GB, free: 76.04 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/1.088, allocations: 319 kB / 0.5438 GB, free: 75.91 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001779/1.088, allocations: 20.61 kB / 0.5438 GB, free: 75.91 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00756/1.095, allocations: 5.901 MB / 0.5496 GB, free: 70.93 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.096, allocations: 0 / 0.5496 GB, free: 70.93 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/1.101, allocations: 2.206 MB / 0.5517 GB, free: 69.81 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/1.102, allocations: 354.4 kB / 0.5521 GB, free: 69.56 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/1.102, allocations: 15.56 kB / 0.5521 GB, free: 69.55 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/1.103, allocations: 40.78 kB / 0.5521 GB, free: 69.55 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003759/1.104, allocations: 107.6 kB / 0.5522 GB, free: 69.52 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/1.104, allocations: 50.59 kB / 0.5523 GB, free: 69.51 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001324/1.105, allocations: 0.6715 MB / 0.5529 GB, free: 69.21 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.71e-07/1.105, allocations: 4 kB / 0.5529 GB, free: 69.2 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004066/1.109, allocations: 0.6401 MB / 0.5536 GB, free: 69.19 MB / 395.1 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.005462/1.115, allocations: 3.368 MB / 0.5569 GB, free: 67.04 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00599/1.121, allocations: 3.1 MB / 0.5599 GB, free: 65.11 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/1.121, allocations: 4 kB / 0.5599 GB, free: 65.11 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/1.123, allocations: 1.19 MB / 0.5611 GB, free: 64.32 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/1.126, allocations: 262.6 kB / 0.5613 GB, free: 64.25 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008823/1.135, allocations: 2.591 MB / 0.5638 GB, free: 63.09 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/1.136, allocations: 1.351 MB / 0.5652 GB, free: 62.34 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/1.137, allocations: 0.6435 MB / 0.5658 GB, free: 61.82 MB / 395.1 MB Notification: Performance of SimCode: time 1.483e-06/1.137, allocations: 0 / 0.5658 GB, free: 61.82 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.483/4.621, allocations: 49.62 MB / 0.6142 GB, free: 20.99 MB / 395.1 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