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.001572/0.001572, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001063, allocations: 101.9 kB / 286.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.474e-05, allocations: 0 / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.4816, allocations: 88.65 MB / 483.9 MB, free: 4.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4819, allocations: 87.31 kB / 484 MB, free: 4.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04622/0.5281, allocations: 18.71 MB / 0.4909 GB, free: 4.836 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5282, allocations: 0 / 0.4909 GB, free: 4.836 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.522e-05/0.5283, allocations: 23.98 kB / 0.491 GB, free: 4.812 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002725/0.531, allocations: 1.146 MB / 0.4921 GB, free: 3.672 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.5311, allocations: 15.97 kB / 0.4921 GB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003731/0.5314, allocations: 126.5 kB / 0.4922 GB, free: 3.531 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.5327, allocations: 0.6583 MB / 0.4929 GB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.5327, allocations: 28 kB / 0.4929 GB, free: 2.969 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001829/0.5329, allocations: 63.86 kB / 0.4929 GB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001429/0.5344, allocations: 0.6559 MB / 0.4936 GB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.5361, allocations: 0.8334 MB / 0.4944 GB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.5361, allocations: 4 kB / 0.4944 GB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.957e-05/0.5362, allocations: 11.94 kB / 0.4944 GB, free: 1.891 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.5362, allocations: 24 kB / 0.4944 GB, free: 1.867 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005368/0.5416, allocations: 3.7 MB / 0.498 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.5428, allocations: 0.7591 MB / 0.4988 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007419/0.5435, allocations: 450.5 kB / 0.4992 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.969e-05/0.5436, allocations: 16.78 kB / 0.4992 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007333/0.5444, allocations: 451.6 kB / 0.4997 GB, free: 13.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=88): time 2.304e-06/0.5444, allocations: 0 / 0.4997 GB, free: 13.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.001379/0.5458, allocations: 0.7667 MB / 0.5004 GB, free: 12.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.5459, allocations: 123.6 kB / 0.5005 GB, free: 12.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006846/0.5466, allocations: 470.1 kB / 0.501 GB, free: 12.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.536e-05/0.5466, allocations: 29.7 kB / 0.501 GB, free: 12.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000373/0.547, allocations: 396.4 kB / 0.5014 GB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000246/0.5473, allocations: 244.4 kB / 0.5016 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-05/0.5473, allocations: 0 / 0.5016 GB, free: 11.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.5475, allocations: 386.7 kB / 0.502 GB, free: 11.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/0.548, allocations: 242.6 kB / 0.5022 GB, free: 10.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005498/0.5485, allocations: 408.4 kB / 0.5026 GB, free: 10.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.549, allocations: 260.5 kB / 0.5029 GB, free: 10.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.549, allocations: 3.938 kB / 0.5029 GB, free: 10.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001476/0.5505, allocations: 0.8487 MB / 0.5037 GB, free: 9.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007889/0.5513, allocations: 1.593 MB / 0.5052 GB, free: 7.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.5513, allocations: 8 kB / 0.5053 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008338/0.5521, allocations: 279.6 kB / 0.5055 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005349/0.5527, allocations: 131.8 kB / 0.5056 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004848/0.5576, allocations: 4.424 MB / 0.51 GB, free: 2.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006819/0.5583, allocations: 99.53 kB / 0.5101 GB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.077e-05/0.5583, allocations: 27.98 kB / 0.5101 GB, free: 2.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.265e-06/0.5584, allocations: 4 kB / 0.5101 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001258/0.5596, allocations: 0.7541 MB / 0.5108 GB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.5596, allocations: 4 kB / 0.5108 GB, free: 1.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006732/0.5603, allocations: 273.6 kB / 0.5111 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.5608, allocations: 124 kB / 0.5112 GB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004858/0.5657, allocations: 4.422 MB / 0.5155 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.5664, allocations: 79.44 kB / 0.5156 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.048e-05/0.5664, allocations: 32 kB / 0.5156 GB, free: 12.53 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.0003082/0.5668, allocations: 143.6 kB / 0.5158 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001369/0.5681, allocations: 0.7705 MB / 0.5165 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.5683, allocations: 88.92 kB / 0.5166 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.5685, allocations: 79.78 kB / 0.5167 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.5686, allocations: 12 kB / 0.5167 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5686, allocations: 0 / 0.5167 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.5686, allocations: 3.984 kB / 0.5167 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.5715, allocations: 1.83 MB / 0.5185 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.5715, allocations: 4 kB / 0.5185 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004481/0.5719, allocations: 95.88 kB / 0.5186 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006739/0.5726, allocations: 267.6 kB / 0.5188 GB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.588e-05/0.5727, allocations: 11.98 kB / 0.5188 GB, free: 9.168 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004694/0.5774, allocations: 4.417 MB / 0.5232 GB, free: 4.527 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5774, allocations: 4 kB / 0.5232 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.5794, allocations: 1.277 MB / 0.5244 GB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004052/0.5798, allocations: 247.9 kB / 0.5246 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.5799, allocations: 4 kB / 0.5247 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005338/0.5805, allocations: 51.95 kB / 0.5247 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.5807, allocations: 88.64 kB / 0.5248 GB, free: 2.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.319e-05/0.5808, allocations: 27.98 kB / 0.5248 GB, free: 2.793 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005089/0.5813, allocations: 342.9 kB / 0.5251 GB, free: 2.457 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5813, allocations: 0 / 0.5251 GB, free: 2.457 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001735/0.583, allocations: 436.3 kB / 0.5256 GB, free: 2.031 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: 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.002284/0.5853, allocations: 1.863 MB / 0.5274 GB, free: 140 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.5883, allocations: 1.882 MB / 0.5292 GB, free: 14.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5884, allocations: 320 / 0.5292 GB, free: 14.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.5894, allocations: 0.7168 MB / 0.5299 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007546/0.5901, allocations: 132.1 kB / 0.53 GB, free: 13.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.5936, allocations: 1.362 MB / 0.5314 GB, free: 11.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007136/0.5943, allocations: 1.04 MB / 0.5324 GB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005226/0.5949, allocations: 102 kB / 0.5325 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003952/0.5953, allocations: 303.3 kB / 0.5328 GB, free: 10.46 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5953, allocations: 0 / 0.5328 GB, free: 10.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05385/0.6492, allocations: 21.67 MB / 0.5539 GB, free: 4.965 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/0.6494, allocations: 181.2 kB / 0.5541 GB, free: 4.773 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/3.331, allocations: 0.625 kB / 0.5541 GB, free: 4.773 MB / 426.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)