Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.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_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.115/1.115, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008164/0.0008165, allocations: 96.45 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08884/0.08969, allocations: 56.92 MB / 343.3 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07907/0.1688, allocations: 51.47 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.3897, allocations: 106.6 MB / 0.4896 GB, free: 2.758 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.39, allocations: 92.17 kB / 0.4897 GB, free: 2.711 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: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.114/0.504, allocations: 45.65 MB / 0.5343 GB, free: 10.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.504, allocations: 8 kB / 0.5343 GB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/0.5048, allocations: 273.2 kB / 0.5345 GB, free: 9.859 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.507, allocations: 1.235 MB / 0.5357 GB, free: 8.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/0.5071, allocations: 52 kB / 0.5358 GB, free: 8.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.5073, allocations: 103.9 kB / 0.5359 GB, free: 8.418 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00218/0.5095, allocations: 1.123 MB / 0.537 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.5121, allocations: 1.473 MB / 0.5384 GB, free: 5.734 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.946e-05/0.5121, allocations: 11.84 kB / 0.5384 GB, free: 5.719 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.5122, allocations: 4 kB / 0.5384 GB, free: 5.715 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.5123, allocations: 40 kB / 0.5385 GB, free: 5.676 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009631/0.5219, allocations: 6.821 MB / 0.5451 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008795/0.5228, allocations: 0.5687 MB / 0.5457 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009807/0.5238, allocations: 0.6193 MB / 0.5463 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.333e-05/0.5239, allocations: 13 kB / 0.5463 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009872/0.5249, allocations: 0.6584 MB / 0.547 GB, free: 12.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=124): time 2.986e-06/0.5249, allocations: 3.938 kB / 0.547 GB, free: 12.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=127): time 0.004685/0.5296, allocations: 2.54 MB / 0.5494 GB, free: 10.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.5298, allocations: 200.9 kB / 0.5496 GB, free: 9.859 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.5311, allocations: 0.9591 MB / 0.5506 GB, free: 8.891 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.828e-05/0.5312, allocations: 33.7 kB / 0.5506 GB, free: 8.852 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004634/0.5317, allocations: 0.624 MB / 0.5512 GB, free: 8.215 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003305/0.532, allocations: 366.7 kB / 0.5516 GB, free: 7.852 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.84e-05/0.5321, allocations: 0 / 0.5516 GB, free: 7.852 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5323, allocations: 365.8 kB / 0.5519 GB, free: 7.488 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007059/0.533, allocations: 419.9 kB / 0.5523 GB, free: 7.078 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009246/0.5339, allocations: 0.8131 MB / 0.5531 GB, free: 6.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008313/0.5347, allocations: 498.6 kB / 0.5536 GB, free: 5.602 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.5348, allocations: 0 / 0.5536 GB, free: 5.602 MB / 426.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.00251/0.5373, allocations: 1.477 MB / 0.555 GB, free: 4.109 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001679/0.539, allocations: 4.831 MB / 0.5597 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.539, allocations: 12 kB / 0.5597 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009734/0.54, allocations: 330.4 kB / 0.5601 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009412/0.5409, allocations: 247.6 kB / 0.5603 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005728/0.5467, allocations: 5.486 MB / 0.5657 GB, free: 8.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.5479, allocations: 75.86 kB / 0.5657 GB, free: 8.445 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.5481, allocations: 68.05 kB / 0.5658 GB, free: 8.379 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.912e-06/0.5481, allocations: 7.938 kB / 0.5658 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002251/0.5504, allocations: 1.302 MB / 0.5671 GB, free: 7.059 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.5504, allocations: 12 kB / 0.5671 GB, free: 7.047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008405/0.5512, allocations: 333.7 kB / 0.5674 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.5521, allocations: 243.7 kB / 0.5676 GB, free: 6.477 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005464/0.5575, allocations: 5.498 MB / 0.573 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.5586, allocations: 67.86 kB / 0.5731 GB, free: 0.5703 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.5588, allocations: 64.06 kB / 0.5731 GB, free: 0.5078 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$whenCondition1,hbridge.fire_p,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,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003414/0.5591, allocations: 238.1 kB / 0.5734 GB, free: 264 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/0.5593, allocations: 150.1 kB / 0.5735 GB, free: 112 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1073/0.6666, allocations: 1.249 MB / 0.5747 GB, free: 146.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.6667, allocations: 10.81 kB / 0.5747 GB, free: 146.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.6667, allocations: 7.781 kB / 0.5747 GB, free: 146.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.6667, allocations: 6.75 kB / 0.5747 GB, free: 146.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003628/0.6703, allocations: 2.806 MB / 0.5775 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.6704, allocations: 0 / 0.5775 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005853/0.671, allocations: 149.2 kB / 0.5776 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007047/0.6717, allocations: 320.5 kB / 0.5779 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-05/0.6718, allocations: 18.77 kB / 0.578 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004058/0.6758, allocations: 5.474 MB / 0.5833 GB, free: 142.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6758, allocations: 5.938 kB / 0.5833 GB, free: 142.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00265/0.6785, allocations: 2.123 MB / 0.5854 GB, free: 142 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00325/0.6818, allocations: 3.146 MB / 0.5884 GB, free: 141.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/0.6824, allocations: 365.9 kB / 0.5888 GB, free: 141.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.6826, allocations: 11.69 kB / 0.5888 GB, free: 141.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007348/0.6833, allocations: 67.58 kB / 0.5889 GB, free: 141.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.6835, allocations: 93.98 kB / 0.589 GB, free: 141.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.869e-05/0.6836, allocations: 45.58 kB / 0.589 GB, free: 141.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008297/0.6845, allocations: 0.6942 MB / 0.5897 GB, free: 141.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003022/0.6875, allocations: 0.673 MB / 0.5903 GB, free: 141.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,inductor.i) * Number of discrete variables: 39 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,hbridge.fire_p,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,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.triangle.count,meanCurrent.x,meanVoltage.x,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004543/0.688, allocations: 351 kB / 0.5907 GB, free: 141 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003008/0.691, allocations: 2.739 MB / 0.5933 GB, free: 140.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.691, allocations: 0 / 0.5933 GB, free: 140.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.6922, allocations: 1.088 MB / 0.5944 GB, free: 139.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.6932, allocations: 265.8 kB / 0.5947 GB, free: 139.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/0.6974, allocations: 2.41 MB / 0.597 GB, free: 139.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008806/0.6983, allocations: 1.434 MB / 0.5984 GB, free: 138.4 MB / 442.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6983, allocations: 2.875 kB / 0.5984 GB, free: 138.4 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive_fmu --startTime=0 --stopTime=24 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1)