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_R.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_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",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.002238/0.002238, allocations: 179.5 kB / 13.66 MB, free: 1.656 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.217/2.217, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001164/0.001163, allocations: 86.58 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.493e-05/4.529e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1415, allocations: 47.58 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5116/0.6532, allocations: 85.59 MB / 454.8 MB, free: 7.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003874/0.6536, allocations: 84.81 kB / 454.9 MB, free: 7.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06381/0.7175, allocations: 15.17 MB / 470 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.7175, allocations: 0 / 470 MB, free: 10.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001157/0.7177, allocations: 27.98 kB / 470.1 MB, free: 10.06 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.003544/0.7212, allocations: 1.05 MB / 471.1 MB, free: 8.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.7213, allocations: 8.031 kB / 471.1 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000443/0.7218, allocations: 139.3 kB / 471.3 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003601/0.7221, allocations: 110.7 kB / 471.4 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.7239, allocations: 0.6408 MB / 472 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.662e-05/0.7241, allocations: 65.98 kB / 472.1 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002277/0.7243, allocations: 88 kB / 472.2 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/0.727, allocations: 0.9086 MB / 473.1 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.201e-05/0.7271, allocations: 7.922 kB / 473.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/0.7273, allocations: 36 kB / 473.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/0.7273, allocations: 20 kB / 473.1 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002223/0.7295, allocations: 0.6717 MB / 473.8 MB, free: 6.156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009043/0.7386, allocations: 3.732 MB / 477.5 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.7409, allocations: 0.7676 MB / 478.3 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.7422, allocations: 448.5 kB / 478.7 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.7423, allocations: 12.72 kB / 478.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/0.7435, allocations: 441.4 kB / 479.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 5e-06/0.7436, allocations: 0 / 479.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.00282/0.7464, allocations: 0.8483 MB / 480 MB, free: 15.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.7466, allocations: 119.6 kB / 480.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.7479, allocations: 0.5895 MB / 480.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001815/0.7481, allocations: 41.7 kB / 480.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.7486, allocations: 379.1 kB / 481.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/0.749, allocations: 232.7 kB / 481.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/0.7491, allocations: 12 kB / 481.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.7492, allocations: 350.7 kB / 481.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007871/0.75, allocations: 241.6 kB / 482 MB, free: 13.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/0.751, allocations: 387.1 kB / 482.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007854/0.7518, allocations: 283.8 kB / 482.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.7518, allocations: 0 / 482.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002438/0.7542, allocations: 0.8597 MB / 483.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006989/0.755, allocations: 1.342 MB / 484.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.755, allocations: 4 kB / 484.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.7566, allocations: 320.6 kB / 485.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008122/0.7575, allocations: 91.89 kB / 485.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008352/0.7658, allocations: 3.628 MB / 488.9 MB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.767, allocations: 95.33 kB / 489 MB, free: 6.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.7671, allocations: 24 kB / 489 MB, free: 6.445 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.7672, allocations: 4 kB / 489 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002415/0.7696, allocations: 0.8289 MB / 489.8 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/0.7696, allocations: 8 kB / 489.8 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.771, allocations: 321.8 kB / 490.1 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006826/0.7717, allocations: 87.83 kB / 490.2 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008139/0.7798, allocations: 3.584 MB / 493.8 MB, free: 1.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007567/0.7807, allocations: 67.52 kB / 493.9 MB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.637e-05/0.7808, allocations: 24 kB / 493.9 MB, free: 1.383 MB / 362.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 (62): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0003511/0.7811, allocations: 172.6 kB / 494.1 MB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003144/0.7814, allocations: 82.97 kB / 494.1 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003429/0.7818, allocations: 96.39 kB / 494.2 MB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.82e-05/0.7818, allocations: 11.95 kB / 494.3 MB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.7818, allocations: 0 / 494.3 MB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.7819, allocations: 3.984 kB / 494.3 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004791/0.7867, allocations: 1.935 MB / 496.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.7867, allocations: 4 kB / 496.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.7873, allocations: 59.91 kB / 496.3 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/0.7888, allocations: 308.7 kB / 496.6 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.89e-05/0.7889, allocations: 15.98 kB / 496.6 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00826/0.7971, allocations: 3.62 MB / 0.4885 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7972, allocations: 7.938 kB / 0.4885 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003624/0.8008, allocations: 1.292 MB / 0.4897 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007215/0.8016, allocations: 248 kB / 0.49 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.8018, allocations: 23.98 kB / 0.49 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/0.8026, allocations: 40.03 kB / 0.49 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/0.803, allocations: 76.67 kB / 0.4901 GB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.507e-05/0.8031, allocations: 23.98 kB / 0.4901 GB, free: 9.129 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009913/0.8041, allocations: 463.1 kB / 0.4906 GB, free: 8.684 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8041, allocations: 0 / 0.4906 GB, free: 8.684 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002093/0.8062, allocations: 443.1 kB / 0.491 GB, free: 8.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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 (48): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.004095/0.8104, allocations: 1.883 MB / 0.4928 GB, free: 6.332 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004946/0.8154, allocations: 1.75 MB / 0.4945 GB, free: 4.527 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/0.8154, allocations: 0 / 0.4945 GB, free: 4.527 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.8173, allocations: 0.6518 MB / 0.4952 GB, free: 3.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.8187, allocations: 150.8 kB / 0.4953 GB, free: 3.719 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006874/0.8256, allocations: 1.373 MB / 0.4967 GB, free: 2.301 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001683/0.8274, allocations: 1.011 MB / 0.4976 GB, free: 1.258 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/0.8288, allocations: 296.1 kB / 0.4979 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of SimCode: time 2.515e-06/0.8289, allocations: 4 kB / 0.4979 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.144/3.973, allocations: 18.59 MB / 0.5161 GB, free: 14.34 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.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_R_res.mat does not exist to compare? outputFormat=mat