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_RL.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_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",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.001542/0.001542, allocations: 181.3 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.185/2.185, 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.001766/0.001766, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.289e-05, allocations: 3.984 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.09948, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4362/0.5357, allocations: 85.89 MB / 455.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004353/0.5362, allocations: 90.19 kB / 455.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08614/0.6224, allocations: 15.5 MB / 470.7 MB, free: 9.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.28e-06/0.6225, allocations: 7.938 kB / 470.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001177/0.6226, allocations: 20 kB / 470.7 MB, free: 9.504 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.004688/0.6273, allocations: 1.067 MB / 471.8 MB, free: 8.375 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.465e-05/0.6274, allocations: 12.03 kB / 471.8 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005448/0.628, allocations: 139.5 kB / 471.9 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000498/0.6285, allocations: 114.6 kB / 472 MB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.6311, allocations: 0.6486 MB / 472.7 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.6313, allocations: 66 kB / 472.7 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003366/0.6316, allocations: 88 kB / 472.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004098/0.6357, allocations: 0.9243 MB / 473.8 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.69e-05/0.6359, allocations: 7.938 kB / 473.8 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.6361, allocations: 36 kB / 473.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/0.6362, allocations: 24 kB / 473.8 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003695/0.6399, allocations: 0.6873 MB / 474.5 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01201/0.652, allocations: 3.763 MB / 478.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003164/0.6552, allocations: 0.7821 MB / 479.1 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/0.6572, allocations: 467.1 kB / 479.5 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.6573, allocations: 8.781 kB / 479.5 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001719/0.6591, allocations: 457.2 kB / 480 MB, free: 15.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=83): time 5.921e-06/0.6591, allocations: 0 / 480 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.00357/0.6627, allocations: 0.7978 MB / 480.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.6629, allocations: 115.6 kB / 480.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001927/0.6648, allocations: 0.5895 MB / 481.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002416/0.6651, allocations: 45.7 kB / 481.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005606/0.6657, allocations: 387.1 kB / 481.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004613/0.6662, allocations: 252.5 kB / 482.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.631e-05/0.6663, allocations: 16 kB / 482.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.6665, allocations: 338.8 kB / 482.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.6677, allocations: 241.8 kB / 482.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.669, allocations: 400.4 kB / 483.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.6702, allocations: 283.8 kB / 483.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.6702, allocations: 0 / 483.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003562/0.6738, allocations: 0.874 MB / 484.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00092/0.6748, allocations: 1.35 MB / 485.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.6748, allocations: 4 kB / 485.6 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.677, allocations: 290.3 kB / 485.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.6783, allocations: 103.8 kB / 486 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.6906, allocations: 4.571 MB / 490.6 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.6923, allocations: 91.39 kB / 490.7 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.6925, allocations: 32 kB / 490.7 MB, free: 4.684 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.6926, allocations: 7.938 kB / 490.7 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003591/0.6962, allocations: 0.8261 MB / 491.5 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/0.6963, allocations: 7.984 kB / 491.5 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001769/0.6981, allocations: 277.7 kB / 491.8 MB, free: 3.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.6992, allocations: 104 kB / 491.9 MB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.7109, allocations: 4.54 MB / 496.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.7121, allocations: 67.61 kB / 496.5 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.7122, allocations: 28 kB / 496.5 MB, free: 14.55 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005012/0.7128, allocations: 168.7 kB / 496.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003903/0.7132, allocations: 94.91 kB / 496.8 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004575/0.7137, allocations: 96.38 kB / 496.9 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.7137, allocations: 12 kB / 496.9 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.7137, allocations: 0 / 496.9 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.7138, allocations: 3.984 kB / 496.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006891/0.7207, allocations: 1.934 MB / 498.8 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.7208, allocations: 0 / 498.8 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009618/0.7218, allocations: 83.91 kB / 498.9 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/0.7236, allocations: 286.1 kB / 499.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/0.7238, allocations: 16 kB / 499.2 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008578/0.7324, allocations: 4.55 MB / 0.492 GB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.7324, allocations: 4 kB / 0.492 GB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003639/0.7361, allocations: 1.304 MB / 0.4932 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007541/0.7369, allocations: 255.9 kB / 0.4935 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.7371, allocations: 16 kB / 0.4935 GB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008283/0.7379, allocations: 39.97 kB / 0.4935 GB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003584/0.7383, allocations: 88.59 kB / 0.4936 GB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.753e-05/0.7384, allocations: 20 kB / 0.4936 GB, free: 5.195 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009961/0.7394, allocations: 463.2 kB / 0.4941 GB, free: 4.746 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7394, allocations: 0 / 0.4941 GB, free: 4.746 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00224/0.7417, allocations: 451.1 kB / 0.4945 GB, free: 4.305 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.004189/0.7459, allocations: 1.887 MB / 0.4964 GB, free: 2.383 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005022/0.751, allocations: 1.916 MB / 0.4982 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/0.7511, allocations: 4 kB / 0.4982 GB, free: 396 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.753, allocations: 0.7289 MB / 0.4989 GB, free: 15.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.7545, allocations: 163.2 kB / 0.4991 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005633/0.7601, allocations: 1.424 MB / 0.5005 GB, free: 14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009181/0.7611, allocations: 1.019 MB / 0.5015 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007516/0.7619, allocations: 307.3 kB / 0.5018 GB, free: 12.65 MB / 394.7 MB Notification: Performance of SimCode: time 1.814e-06/0.7619, allocations: 0 / 0.5018 GB, free: 12.65 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.108/3.87, allocations: 22.7 MB / 0.5239 GB, free: 5.91 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.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_RL_res.mat does not exist to compare? outputFormat=mat