Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008363/0.0008363, allocations: 85.73 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.301e-05/2.291e-05, allocations: 4 kB / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.09985, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3254/0.4253, allocations: 86.31 MB / 473.9 MB, free: 8.363 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4256, allocations: 87.94 kB / 474 MB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03709/0.4627, allocations: 15.57 MB / 489.5 MB, free: 8.609 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4628, allocations: 0 / 489.5 MB, free: 8.609 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.598e-05/0.4628, allocations: 20 kB / 489.6 MB, free: 8.59 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001753/0.4646, allocations: 1.074 MB / 490.6 MB, free: 7.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.4646, allocations: 8.031 kB / 490.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.4648, allocations: 122.6 kB / 490.8 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000915/0.4658, allocations: 0.637 MB / 491.4 MB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.4658, allocations: 31.95 kB / 491.4 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.4659, allocations: 59.94 kB / 491.5 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001147/0.4671, allocations: 0.6249 MB / 492.1 MB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.4684, allocations: 0.811 MB / 492.9 MB, free: 5.074 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/0.4684, allocations: 4 kB / 492.9 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.4685, allocations: 0 / 492.9 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.4685, allocations: 24 kB / 493 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.4731, allocations: 3.589 MB / 496.5 MB, free: 1.355 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.4743, allocations: 0.7409 MB / 497.3 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006795/0.475, allocations: 435.1 kB / 497.7 MB, free: 176 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.365e-05/0.475, allocations: 8.781 kB / 497.7 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006891/0.4757, allocations: 427.8 kB / 498.1 MB, free: 15.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.805e-06/0.4757, allocations: 0 / 498.1 MB, free: 15.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.001229/0.477, allocations: 0.7276 MB / 498.9 MB, free: 14.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.477, allocations: 115.6 kB / 499 MB, free: 14.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/0.4776, allocations: 445.9 kB / 499.4 MB, free: 14.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.4777, allocations: 25.7 kB / 499.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.478, allocations: 376.4 kB / 499.8 MB, free: 14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.4781, allocations: 236.5 kB / 0.4883 GB, free: 13.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.4782, allocations: 0 / 0.4883 GB, free: 13.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4783, allocations: 374.7 kB / 0.4887 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.4787, allocations: 230.1 kB / 0.4889 GB, free: 13.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.4792, allocations: 376.8 kB / 0.4893 GB, free: 12.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.4795, allocations: 240.5 kB / 0.4895 GB, free: 12.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4796, allocations: 4 kB / 0.4895 GB, free: 12.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001227/0.4808, allocations: 0.7978 MB / 0.4903 GB, free: 11.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004791/0.4813, allocations: 1.352 MB / 0.4916 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.4813, allocations: 0 / 0.4916 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007631/0.4821, allocations: 281.5 kB / 0.4919 GB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004417/0.4825, allocations: 107.8 kB / 0.492 GB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004571/0.4871, allocations: 4.429 MB / 0.4963 GB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006648/0.4878, allocations: 75.53 kB / 0.4964 GB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.083e-05/0.4879, allocations: 28 kB / 0.4964 GB, free: 5.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/0.4879, allocations: 4 kB / 0.4964 GB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001155/0.4891, allocations: 0.7033 MB / 0.4971 GB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.4891, allocations: 4 kB / 0.4971 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006612/0.4897, allocations: 276.6 kB / 0.4973 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.4901, allocations: 103.8 kB / 0.4974 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004558/0.4947, allocations: 4.424 MB / 0.5018 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.4953, allocations: 47.7 kB / 0.5018 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.4954, allocations: 43.94 kB / 0.5018 GB, free: 15.25 MB / 394.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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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.0002754/0.4956, allocations: 143.6 kB / 0.502 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001132/0.4968, allocations: 0.7238 MB / 0.5027 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.88e-05/0.4969, allocations: 71.09 kB / 0.5028 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002029/0.4971, allocations: 83.36 kB / 0.5028 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4971, allocations: 8 kB / 0.5028 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.4971, allocations: 3.953 kB / 0.5028 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.4971, allocations: 3.984 kB / 0.5029 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.4996, allocations: 1.732 MB / 0.5045 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4996, allocations: 3.938 kB / 0.5045 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/0.5, allocations: 75.89 kB / 0.5046 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006948/0.5007, allocations: 279.5 kB / 0.5049 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.5007, allocations: 4 kB / 0.5049 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004637/0.5054, allocations: 4.417 MB / 0.5092 GB, free: 7.406 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5054, allocations: 3.938 kB / 0.5092 GB, free: 7.402 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.5073, allocations: 1.215 MB / 0.5104 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.5076, allocations: 236.1 kB / 0.5106 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.718e-05/0.5077, allocations: 4 kB / 0.5106 GB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.5082, allocations: 31.97 kB / 0.5107 GB, free: 5.883 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.5084, allocations: 88.55 kB / 0.5107 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-05/0.5084, allocations: 20 kB / 0.5108 GB, free: 5.777 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004124/0.5088, allocations: 319 kB / 0.5111 GB, free: 5.465 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5089, allocations: 4 kB / 0.5111 GB, free: 5.461 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001572/0.5104, allocations: 410.8 kB / 0.5115 GB, free: 5.059 MB / 394.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_last,meanVoltage.y_last) * 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.002087/0.5125, allocations: 1.803 MB / 0.5132 GB, free: 3.223 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00277/0.5153, allocations: 1.821 MB / 0.515 GB, free: 1.332 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5153, allocations: 0.875 kB / 0.515 GB, free: 1.332 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008946/0.5162, allocations: 0.6974 MB / 0.5157 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006779/0.5169, allocations: 129 kB / 0.5158 GB, free: 500 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002973/0.5199, allocations: 1.291 MB / 0.5171 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005811/0.5205, allocations: 1.02 MB / 0.5181 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004051/0.5209, allocations: 89.64 kB / 0.5181 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/0.5213, allocations: 287.3 kB / 0.5184 GB, free: 13.73 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5213, allocations: 0 / 0.5184 GB, free: 13.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04442/0.5657, allocations: 20.47 MB / 0.5384 GB, free: 9.422 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.5659, allocations: 168.7 kB / 0.5386 GB, free: 9.223 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.422/2.988, allocations: 0 / 0.5386 GB, free: 9.223 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat