Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00155/0.00155, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009012/0.0009011, allocations: 90.05 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.252e-05/3.254e-05, allocations: 7.984 kB / 350.7 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.098, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3408/0.4389, allocations: 89.31 MB / 491.4 MB, free: 144 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.4392, allocations: 78.95 kB / 491.5 MB, free: 100 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04971/0.4889, allocations: 18.89 MB / 0.4985 GB, free: 14.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4889, allocations: 4 kB / 0.4985 GB, free: 14.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001098/0.4891, allocations: 24 kB / 0.4985 GB, free: 14.82 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002727/0.4918, allocations: 1.143 MB / 0.4996 GB, free: 13.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.4919, allocations: 12.03 kB / 0.4996 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003247/0.4922, allocations: 143.7 kB / 0.4997 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.4925, allocations: 122.5 kB / 0.4999 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.4938, allocations: 0.6642 MB / 0.5005 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.084e-05/0.4939, allocations: 70 kB / 0.5006 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.494, allocations: 92 kB / 0.5007 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.4959, allocations: 0.9756 MB / 0.5016 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.496, allocations: 4 kB / 0.5016 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.374e-05/0.4961, allocations: 43.95 kB / 0.5017 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/0.4961, allocations: 24 kB / 0.5017 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.4975, allocations: 0.7146 MB / 0.5024 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005678/0.5032, allocations: 3.909 MB / 0.5062 GB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.5046, allocations: 0.805 MB / 0.507 GB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007917/0.5054, allocations: 479.1 kB / 0.5074 GB, free: 5.355 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.886e-05/0.5055, allocations: 8.781 kB / 0.5075 GB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007924/0.5063, allocations: 469.4 kB / 0.5079 GB, free: 4.867 MB / 378.7 MB Notification: Performance of pre-optimization done (n=88): time 3.186e-06/0.5063, allocations: 4 kB / 0.5079 GB, free: 4.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.001529/0.5078, allocations: 0.8445 MB / 0.5087 GB, free: 4.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.5079, allocations: 120.9 kB / 0.5088 GB, free: 3.863 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009302/0.5088, allocations: 0.617 MB / 0.5095 GB, free: 3.246 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.466e-05/0.5089, allocations: 49.7 kB / 0.5095 GB, free: 3.191 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003152/0.5093, allocations: 380.7 kB / 0.5099 GB, free: 2.812 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.5095, allocations: 264.3 kB / 0.5101 GB, free: 2.551 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/0.5096, allocations: 16 kB / 0.5101 GB, free: 2.535 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.5098, allocations: 398.7 kB / 0.5105 GB, free: 2.137 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004589/0.5102, allocations: 258 kB / 0.5108 GB, free: 1.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005682/0.5108, allocations: 427.9 kB / 0.5112 GB, free: 1.402 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000566/0.5114, allocations: 307.7 kB / 0.5115 GB, free: 1.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.5114, allocations: 7.938 kB / 0.5115 GB, free: 1.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001631/0.513, allocations: 0.967 MB / 0.5124 GB, free: 100 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006813/0.5137, allocations: 1.603 MB / 0.514 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.5138, allocations: 4 kB / 0.514 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008516/0.5146, allocations: 291.6 kB / 0.5143 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005301/0.5152, allocations: 131.7 kB / 0.5144 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005023/0.5202, allocations: 4.568 MB / 0.5188 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008466/0.5211, allocations: 111.5 kB / 0.5189 GB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.5212, allocations: 35.98 kB / 0.519 GB, free: 8.977 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.5212, allocations: 1.25 kB / 0.519 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001503/0.5227, allocations: 0.881 MB / 0.5198 GB, free: 8.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5227, allocations: 4.531 kB / 0.5198 GB, free: 8.078 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007558/0.5235, allocations: 283.5 kB / 0.5201 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.524, allocations: 127.8 kB / 0.5202 GB, free: 7.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004925/0.5289, allocations: 4.586 MB / 0.5247 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007754/0.5297, allocations: 103.4 kB / 0.5248 GB, free: 2.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.978e-05/0.5298, allocations: 31.95 kB / 0.5248 GB, free: 2.691 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 38 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$whenCondition3,$whenCondition2,$whenCondition1,zeroOrderHold.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition5,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition4,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.triangle.T_start,signalPWM.triangle.T_start,$PRE.signalPWM.triangle.count,signalPWM.triangle.count,zeroOrderHold.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 74 * 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.0002736/0.5301, allocations: 176.6 kB / 0.525 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.5303, allocations: 86.97 kB / 0.5251 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002907/0.5306, allocations: 101.1 kB / 0.5252 GB, free: 2.324 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.5306, allocations: 12 kB / 0.5252 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5307, allocations: 0 / 0.5252 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.5307, allocations: 3.984 kB / 0.5252 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003142/0.5338, allocations: 2.04 MB / 0.5272 GB, free: 208 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.5338, allocations: 0 / 0.5272 GB, free: 208 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004428/0.5343, allocations: 91.88 kB / 0.5273 GB, free: 116 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007505/0.5351, allocations: 291.8 kB / 0.5276 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.075e-05/0.5351, allocations: 12 kB / 0.5276 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005079/0.5402, allocations: 4.553 MB / 0.532 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.5402, allocations: 0 / 0.532 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.5425, allocations: 1.367 MB / 0.5334 GB, free: 9.605 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005251/0.543, allocations: 268.1 kB / 0.5336 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.5432, allocations: 20 kB / 0.5336 GB, free: 9.305 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006412/0.5438, allocations: 67.89 kB / 0.5337 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/0.5441, allocations: 88.64 kB / 0.5338 GB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/0.5442, allocations: 31.98 kB / 0.5338 GB, free: 9.117 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007347/0.5449, allocations: 479.2 kB / 0.5343 GB, free: 8.656 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5449, allocations: 3.938 kB / 0.5343 GB, free: 8.652 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001795/0.5467, allocations: 471.1 kB / 0.5347 GB, free: 8.191 MB / 410.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: 30 (signalPWM.zeroOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.triangle.T_start,signalPWM.triangle.count,meanCurrent.y_last,meanVoltage.y_last,zeroOrderHold.firstTrigger,zeroOrderHold.ySample) * Number of discrete states: 5 (signalPWM.triangle.count,meanCurrent.x,meanVoltage.x,zeroOrderHold.ySample,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002667/0.5494, allocations: 1.954 MB / 0.5366 GB, free: 6.207 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003248/0.5527, allocations: 2.006 MB / 0.5386 GB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5527, allocations: 0 / 0.5386 GB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.5538, allocations: 0.7619 MB / 0.5393 GB, free: 3.336 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00087/0.5547, allocations: 165 kB / 0.5395 GB, free: 3.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.5583, allocations: 1.463 MB / 0.5409 GB, free: 1.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006941/0.559, allocations: 1.036 MB / 0.5419 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006098/0.5596, allocations: 136.8 kB / 0.5421 GB, free: 484 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003868/0.56, allocations: 311.3 kB / 0.5424 GB, free: 172 kB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.56, allocations: 0 / 0.5424 GB, free: 172 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05372/0.6138, allocations: 25.11 MB / 0.5669 GB, free: 7.465 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002914/0.6141, allocations: 212.1 kB / 0.5671 GB, free: 7.238 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.313, allocations: 0 / 0.5671 GB, free: 7.238 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_TrianglePWM_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe 2>&1)