Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.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_DC_Drive,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009352/0.0009352, allocations: 176 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.039/1.039, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00088/0.00088, allocations: 78.31 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1428/0.1437, allocations: 53 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05977/0.2035, allocations: 47.56 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2176/0.4211, allocations: 103.3 MB / 465.9 MB, free: 4.555 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.4215, allocations: 87.42 kB / 466 MB, free: 4.543 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.1057/0.5272, allocations: 43.47 MB / 0.4975 GB, free: 1.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.5272, allocations: 8 kB / 0.4975 GB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000916/0.5281, allocations: 261.3 kB / 0.4978 GB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/0.5306, allocations: 1.219 MB / 0.499 GB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.25e-05/0.5307, allocations: 52 kB / 0.499 GB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002568/0.531, allocations: 99.91 kB / 0.4991 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001978/0.533, allocations: 1.092 MB / 0.5002 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.5353, allocations: 1.436 MB / 0.5016 GB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.5353, allocations: 7.922 kB / 0.5016 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.5354, allocations: 4 kB / 0.5016 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.5355, allocations: 40 kB / 0.5016 GB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008116/0.5436, allocations: 6.668 MB / 0.5082 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007924/0.5444, allocations: 0.5439 MB / 0.5087 GB, free: 5.676 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008962/0.5453, allocations: 0.6181 MB / 0.5093 GB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.194e-05/0.5454, allocations: 13 kB / 0.5093 GB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008855/0.5463, allocations: 0.6466 MB / 0.5099 GB, free: 4.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 2.815e-06/0.5463, allocations: 0 / 0.5099 GB, free: 4.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.004121/0.5504, allocations: 2.495 MB / 0.5124 GB, free: 1.805 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.5505, allocations: 200.9 kB / 0.5126 GB, free: 1.566 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.5517, allocations: 0.9259 MB / 0.5135 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-05/0.5518, allocations: 33.7 kB / 0.5135 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004022/0.5522, allocations: 0.6044 MB / 0.5141 GB, free: 15.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/0.5525, allocations: 366.6 kB / 0.5144 GB, free: 15.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.5525, allocations: 0 / 0.5144 GB, free: 15.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.5527, allocations: 361.8 kB / 0.5148 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006617/0.5533, allocations: 412 kB / 0.5152 GB, free: 14.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008975/0.5542, allocations: 0.8013 MB / 0.516 GB, free: 13.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000761/0.555, allocations: 478.7 kB / 0.5164 GB, free: 13.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.555, allocations: 4 kB / 0.5164 GB, free: 13.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002266/0.5573, allocations: 1.461 MB / 0.5179 GB, free: 11.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001626/0.5589, allocations: 4.806 MB / 0.5225 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.559, allocations: 12 kB / 0.5226 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008929/0.5599, allocations: 339.4 kB / 0.5229 GB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007854/0.5607, allocations: 235.6 kB / 0.5231 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005434/0.5661, allocations: 5.503 MB / 0.5285 GB, free: 336 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008836/0.567, allocations: 47.94 kB / 0.5285 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.5671, allocations: 68.06 kB / 0.5286 GB, free: 220 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-06/0.5671, allocations: 0 / 0.5286 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002055/0.5692, allocations: 1.286 MB / 0.5298 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.5692, allocations: 15.98 kB / 0.5299 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008053/0.57, allocations: 339.2 kB / 0.5302 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007185/0.5708, allocations: 223.6 kB / 0.5304 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005132/0.5759, allocations: 5.488 MB / 0.5358 GB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008879/0.5768, allocations: 43.94 kB / 0.5358 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.5769, allocations: 68.06 kB / 0.5359 GB, free: 8.402 MB / 394.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: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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.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,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 (140): * Single equations (assignments): 134 * 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.5773, allocations: 245.4 kB / 0.5361 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.5775, allocations: 150.2 kB / 0.5362 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/0.5795, allocations: 1.216 MB / 0.5374 GB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.5796, allocations: 12 kB / 0.5374 GB, free: 6.746 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5796, allocations: 4.125 kB / 0.5374 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.5796, allocations: 3.984 kB / 0.5374 GB, free: 6.738 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.5835, allocations: 2.75 MB / 0.5401 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.5835, allocations: 4 kB / 0.5401 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.5841, allocations: 123.8 kB / 0.5403 GB, free: 3.789 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007943/0.5849, allocations: 322.5 kB / 0.5406 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.154e-05/0.585, allocations: 15.94 kB / 0.5406 GB, free: 3.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005182/0.5902, allocations: 5.48 MB / 0.5459 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5902, allocations: 3.938 kB / 0.5459 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002945/0.5931, allocations: 2.072 MB / 0.548 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003774/0.5969, allocations: 3.079 MB / 0.551 GB, free: 8.309 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006506/0.5976, allocations: 356.4 kB / 0.5513 GB, free: 7.938 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.5978, allocations: 16 kB / 0.5513 GB, free: 7.922 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/0.5985, allocations: 43.86 kB / 0.5514 GB, free: 7.879 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.5987, allocations: 96.81 kB / 0.5515 GB, free: 7.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.432e-05/0.5988, allocations: 47.98 kB / 0.5515 GB, free: 7.738 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0008928/0.5997, allocations: 0.668 MB / 0.5521 GB, free: 7.066 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003305/0.603, allocations: 0.6602 MB / 0.5528 GB, free: 6.406 MB / 410.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: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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,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.sawtooth.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 (82): * Single equations (assignments): 71 * 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.0005478/0.6036, allocations: 364.6 kB / 0.5531 GB, free: 6.043 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003562/0.6071, allocations: 2.687 MB / 0.5558 GB, free: 3.262 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6071, allocations: 0 / 0.5558 GB, free: 3.262 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.6085, allocations: 1.077 MB / 0.5568 GB, free: 2.148 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.6096, allocations: 251 kB / 0.5571 GB, free: 1.906 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/0.6142, allocations: 2.365 MB / 0.5594 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.6152, allocations: 1.42 MB / 0.5608 GB, free: 14.03 MB / 426.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6153, allocations: 0 / 0.5608 GB, free: 14.03 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive_fmu --startTime=0 --stopTime=24 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1)