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.002119/0.002119, allocations: 185.3 kB / 16.41 MB, free: 5.723 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.034/2.034, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001128/0.001128, allocations: 92.41 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3333, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.4701, allocations: 85.99 MB / 460.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003462/0.4705, allocations: 95.94 kB / 460.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0621/0.5326, allocations: 15.49 MB / 476.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5327, allocations: 0 / 476.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.908e-05/0.5328, allocations: 31.94 kB / 476.3 MB, free: 10.95 MB / 362.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.003795/0.5366, allocations: 1.164 MB / 477.4 MB, free: 9.715 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.5366, allocations: 12.03 kB / 477.4 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004393/0.5371, allocations: 135.5 kB / 477.6 MB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.5374, allocations: 114.6 kB / 477.7 MB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.5392, allocations: 0.6525 MB / 478.3 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.674e-05/0.5394, allocations: 69.94 kB / 478.4 MB, free: 8.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.5396, allocations: 84 kB / 478.5 MB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003053/0.5427, allocations: 0.9631 MB / 479.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.507e-05/0.5428, allocations: 0 / 479.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.543, allocations: 43.98 kB / 479.5 MB, free: 7.555 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.998e-05/0.543, allocations: 24 kB / 479.5 MB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002752/0.5458, allocations: 0.7456 MB / 480.3 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008943/0.5548, allocations: 3.771 MB / 484 MB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.5572, allocations: 0.8039 MB / 484.8 MB, free: 2.086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.5573, allocations: 12.59 kB / 484.8 MB, free: 2.074 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0013/0.5586, allocations: 476.3 kB / 485.3 MB, free: 1.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=83): time 3.457e-06/0.5586, allocations: 0 / 485.3 MB, free: 1.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.007039/0.5657, allocations: 1.563 MB / 486.9 MB, free: 15.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.451e-05/0.5658, allocations: 123.8 kB / 487 MB, free: 15.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.5672, allocations: 0.605 MB / 487.6 MB, free: 15.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001624/0.5674, allocations: 45.7 kB / 487.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004157/0.5678, allocations: 391.1 kB / 488 MB, free: 14.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003464/0.5682, allocations: 252.4 kB / 488.3 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.705e-05/0.5683, allocations: 15.94 kB / 488.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5685, allocations: 342.8 kB / 488.6 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009495/0.5694, allocations: 273.9 kB / 488.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.5705, allocations: 417.1 kB / 489.3 MB, free: 13.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009795/0.5715, allocations: 308.9 kB / 489.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.5715, allocations: 4 kB / 489.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002866/0.5744, allocations: 0.9144 MB / 490.5 MB, free: 12.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005861/0.5751, allocations: 1.344 MB / 491.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.5751, allocations: 4 kB / 491.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/0.5766, allocations: 289.5 kB / 492.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008574/0.5775, allocations: 111.8 kB / 492.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008664/0.5862, allocations: 4.654 MB / 496.9 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.5874, allocations: 95.48 kB / 497 MB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.145e-05/0.5875, allocations: 32 kB / 497 MB, free: 5.309 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.5875, allocations: 4 kB / 497 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002604/0.5901, allocations: 0.8544 MB / 497.9 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.5902, allocations: 4 kB / 497.9 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.5914, allocations: 280.6 kB / 498.2 MB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008013/0.5923, allocations: 108 kB / 498.3 MB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2766/0.8689, allocations: 4.62 MB / 0.4911 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008218/0.8698, allocations: 67.7 kB / 0.4912 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.8699, allocations: 31.75 kB / 0.4912 GB, free: 101.8 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 () * Number of clocked 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.0008639/0.8708, allocations: 347.2 kB / 0.4915 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/0.8711, allocations: 86.91 kB / 0.4916 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.8714, allocations: 100 kB / 0.4917 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.8715, allocations: 10.78 kB / 0.4917 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.8715, allocations: 0 / 0.4917 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.8715, allocations: 4.328 kB / 0.4917 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004757/0.8763, allocations: 1.962 MB / 0.4936 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.8763, allocations: 0 / 0.4936 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006732/0.877, allocations: 75.8 kB / 0.4937 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.8783, allocations: 294.1 kB / 0.494 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.8784, allocations: 15.75 kB / 0.494 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007738/0.8862, allocations: 4.649 MB / 0.4985 GB, free: 98.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.8862, allocations: 2.625 kB / 0.4985 GB, free: 98.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003694/0.8899, allocations: 1.345 MB / 0.4999 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006133/0.8906, allocations: 258.4 kB / 0.5001 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.8908, allocations: 18.25 kB / 0.5001 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000785/0.8916, allocations: 38.25 kB / 0.5002 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000349/0.892, allocations: 91.92 kB / 0.5002 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-05/0.8921, allocations: 26.03 kB / 0.5003 GB, free: 98.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009983/0.8931, allocations: 478.2 kB / 0.5007 GB, free: 98.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8931, allocations: 4.125 kB / 0.5007 GB, free: 98.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00226/0.8954, allocations: 440.3 kB / 0.5012 GB, free: 98.11 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) * Number of clocked states: 0 () * 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.004068/0.8995, allocations: 1.935 MB / 0.503 GB, free: 96.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004641/0.9042, allocations: 1.979 MB / 0.505 GB, free: 95.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/0.9042, allocations: 3.656 kB / 0.505 GB, free: 95.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.9059, allocations: 0.7613 MB / 0.5057 GB, free: 95.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.9071, allocations: 152.2 kB / 0.5059 GB, free: 95.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006305/0.9134, allocations: 4.665 MB / 0.5104 GB, free: 91.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000619/0.9141, allocations: 1.027 MB / 0.5114 GB, free: 90.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006264/0.9147, allocations: 301.7 kB / 0.5117 GB, free: 90.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.174e-06/0.9148, allocations: 0 / 0.5117 GB, free: 90.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.028/3.943, allocations: 22.36 MB / 0.5335 GB, free: 77.41 MB / 378.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