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.001625/0.001624, 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 2/2, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001151/0.001151, allocations: 93.73 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003893, allocations: 16 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3526, allocations: 47.57 MB / 374.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.5065, allocations: 85.7 MB / 460.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/0.5069, allocations: 87.94 kB / 460.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06406/0.571, allocations: 15.17 MB / 475.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.5711, allocations: 0 / 475.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001084/0.5712, allocations: 28.16 kB / 475.6 MB, free: 11.66 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.003991/0.5752, allocations: 1.143 MB / 476.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.5753, allocations: 12.03 kB / 476.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004567/0.5757, allocations: 131.3 kB / 476.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.5761, allocations: 114.6 kB / 477 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.5779, allocations: 0.6409 MB / 477.7 MB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.636e-05/0.5781, allocations: 62 kB / 477.7 MB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002626/0.5784, allocations: 92 kB / 477.8 MB, free: 9.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003178/0.5816, allocations: 0.9436 MB / 478.8 MB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.137e-05/0.5817, allocations: 3.938 kB / 478.8 MB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.5818, allocations: 39.94 kB / 478.8 MB, free: 8.324 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.25e-05/0.5819, allocations: 24 kB / 478.8 MB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002882/0.5848, allocations: 0.7339 MB / 479.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009231/0.5941, allocations: 3.713 MB / 483.3 MB, free: 3.738 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.5966, allocations: 0.7874 MB / 484.1 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001/0.5968, allocations: 12.64 kB / 484.1 MB, free: 2.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.5982, allocations: 459.2 kB / 484.5 MB, free: 2.461 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 3.867e-06/0.5982, allocations: 0 / 484.5 MB, free: 2.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.009447/0.6077, allocations: 1.713 MB / 486.2 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.6078, allocations: 119.4 kB / 486.4 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.6094, allocations: 0.6129 MB / 487 MB, free: 15.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002034/0.6096, allocations: 41.7 kB / 487 MB, free: 15.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004152/0.61, allocations: 379.1 kB / 487.4 MB, free: 15.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003715/0.6104, allocations: 236.6 kB / 487.6 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-05/0.6105, allocations: 16 kB / 487.6 MB, free: 15.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.6107, allocations: 338.8 kB / 488 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009795/0.6117, allocations: 273.8 kB / 488.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.6129, allocations: 409.1 kB / 488.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.6139, allocations: 304.9 kB / 488.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.614, allocations: 0 / 488.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002919/0.6169, allocations: 0.9058 MB / 489.8 MB, free: 13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007523/0.6177, allocations: 1.347 MB / 491.2 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.6178, allocations: 4 kB / 491.2 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.6194, allocations: 296.6 kB / 491.5 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008095/0.6203, allocations: 103.8 kB / 491.6 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008788/0.6291, allocations: 3.576 MB / 495.1 MB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.6303, allocations: 95.34 kB / 495.2 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.6305, allocations: 31.98 kB / 495.3 MB, free: 7.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.6305, allocations: 4 kB / 495.3 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002849/0.6334, allocations: 0.8416 MB / 496.1 MB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.6334, allocations: 0 / 496.1 MB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.6349, allocations: 301.3 kB / 496.4 MB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007497/0.6357, allocations: 91.83 kB / 496.5 MB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008694/0.6444, allocations: 3.536 MB / 0.4883 GB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/0.6453, allocations: 75.5 kB / 0.4884 GB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.7e-05/0.6454, allocations: 24 kB / 0.4884 GB, free: 2.301 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 (64): * Single equations (assignments): 62 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0008904/0.6463, allocations: 341 kB / 0.4887 GB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003035/0.6466, allocations: 90.91 kB / 0.4888 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003394/0.647, allocations: 100.4 kB / 0.4889 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.647, allocations: 8 kB / 0.4889 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.964e-06/0.647, allocations: 0 / 0.4889 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.6471, allocations: 3.984 kB / 0.4889 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2763/0.9233, allocations: 1.92 MB / 0.4908 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.9234, allocations: 3.281 kB / 0.4908 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006956/0.9241, allocations: 67.72 kB / 0.4909 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.9258, allocations: 299.1 kB / 0.4912 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.926, allocations: 14.22 kB / 0.4912 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00805/0.9341, allocations: 3.567 MB / 0.4947 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.9341, allocations: 0 / 0.4947 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003877/0.938, allocations: 1.33 MB / 0.4959 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006938/0.9388, allocations: 252.7 kB / 0.4962 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001948/0.939, allocations: 15.97 kB / 0.4962 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007964/0.9398, allocations: 43.92 kB / 0.4962 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/0.9402, allocations: 80.83 kB / 0.4963 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-05/0.9403, allocations: 25.95 kB / 0.4963 GB, free: 102.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001029/0.9413, allocations: 477.2 kB / 0.4968 GB, free: 102.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9413, allocations: 0 / 0.4968 GB, free: 102.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001963/0.9433, allocations: 434.6 kB / 0.4972 GB, free: 102.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 43 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.003901/0.9472, allocations: 1.907 MB / 0.4991 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004731/0.952, allocations: 1.805 MB / 0.5008 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/0.9521, allocations: 3.656 kB / 0.5008 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/0.9539, allocations: 0.67 MB / 0.5015 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.9553, allocations: 157.1 kB / 0.5017 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006141/0.9614, allocations: 4.574 MB / 0.5061 GB, free: 96.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005923/0.9621, allocations: 1.008 MB / 0.5071 GB, free: 95.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/0.9627, allocations: 296.1 kB / 0.5074 GB, free: 95.7 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.9627, allocations: 2.844 kB / 0.5074 GB, free: 95.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.983/3.945, allocations: 18.27 MB / 0.5252 GB, free: 87.56 MB / 378.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