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_DC_Drive.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_DC_Drive,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009887/0.0009885, allocations: 183.8 kB / 8.136 MB, free: 2.223 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.096/1.096, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008953/0.0008953, allocations: 104 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08824/0.08916, allocations: 55.84 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.2616, allocations: 50.39 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09856/0.3602, allocations: 104.4 MB / 491.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.3605, allocations: 91.92 kB / 491.5 MB, free: 14.3 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: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.2219/0.5824, allocations: 43.68 MB / 0.5226 GB, free: 86.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.5825, allocations: 11.98 kB / 0.5226 GB, free: 86.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008751/0.5833, allocations: 269.2 kB / 0.5229 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002265/0.5856, allocations: 1.214 MB / 0.5241 GB, free: 85.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.5857, allocations: 55.94 kB / 0.5241 GB, free: 85.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000241/0.5859, allocations: 99.98 kB / 0.5242 GB, free: 85.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001962/0.5879, allocations: 1.088 MB / 0.5253 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/0.5901, allocations: 1.444 MB / 0.5267 GB, free: 82.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/0.5901, allocations: 11.83 kB / 0.5267 GB, free: 82.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.5902, allocations: 4 kB / 0.5267 GB, free: 82.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/0.5903, allocations: 40 kB / 0.5268 GB, free: 82.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00761/0.5979, allocations: 6.687 MB / 0.5333 GB, free: 75.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007216/0.5986, allocations: 0.5401 MB / 0.5338 GB, free: 75.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008035/0.5995, allocations: 0.6105 MB / 0.5344 GB, free: 74.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.049e-05/0.5995, allocations: 13 kB / 0.5344 GB, free: 74.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007975/0.6003, allocations: 0.6505 MB / 0.5351 GB, free: 73.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.317e-06/0.6003, allocations: 0 / 0.5351 GB, free: 73.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.003808/0.6042, allocations: 2.48 MB / 0.5375 GB, free: 71.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.6042, allocations: 208.9 kB / 0.5377 GB, free: 71.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.6053, allocations: 0.9256 MB / 0.5386 GB, free: 70.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.085e-05/0.6054, allocations: 37.64 kB / 0.5386 GB, free: 70.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.6057, allocations: 0.6082 MB / 0.5392 GB, free: 69.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.6059, allocations: 370.5 kB / 0.5396 GB, free: 69.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.609e-05/0.6059, allocations: 0 / 0.5396 GB, free: 69.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.651e-05/0.606, allocations: 357.9 kB / 0.5399 GB, free: 68.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.6066, allocations: 407.9 kB / 0.5403 GB, free: 68.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007161/0.6073, allocations: 0.8014 MB / 0.5411 GB, free: 67.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007102/0.608, allocations: 490.6 kB / 0.5415 GB, free: 66.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.608, allocations: 0 / 0.5415 GB, free: 66.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002025/0.6101, allocations: 1.451 MB / 0.543 GB, free: 65.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000622/0.6107, allocations: 4.809 MB / 0.5477 GB, free: 60.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.6107, allocations: 12 kB / 0.5477 GB, free: 60.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008173/0.6116, allocations: 349.8 kB / 0.548 GB, free: 59.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007232/0.6123, allocations: 227.6 kB / 0.5482 GB, free: 59.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004257/0.6166, allocations: 5.498 MB / 0.5536 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008714/0.6174, allocations: 44.03 kB / 0.5536 GB, free: 53.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.6176, allocations: 64.06 kB / 0.5537 GB, free: 53.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.33e-06/0.6176, allocations: 4 kB / 0.5537 GB, free: 53.75 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001833/0.6194, allocations: 1.282 MB / 0.555 GB, free: 52.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.6194, allocations: 12 kB / 0.555 GB, free: 52.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007276/0.6202, allocations: 342.5 kB / 0.5553 GB, free: 52.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006665/0.6209, allocations: 219.6 kB / 0.5555 GB, free: 51.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004097/0.625, allocations: 5.507 MB / 0.5609 GB, free: 46.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007947/0.6258, allocations: 36.05 kB / 0.5609 GB, free: 46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.641e-05/0.6259, allocations: 68.05 kB / 0.561 GB, free: 45.93 MB / 378.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_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.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.0002557/0.6261, allocations: 233.4 kB / 0.5612 GB, free: 45.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.6263, allocations: 154.1 kB / 0.5613 GB, free: 45.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.6282, allocations: 1.22 MB / 0.5625 GB, free: 44.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.6282, allocations: 12 kB / 0.5625 GB, free: 44.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.6282, allocations: 0 / 0.5625 GB, free: 44.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.6282, allocations: 3.984 kB / 0.5626 GB, free: 44.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.632, allocations: 2.749 MB / 0.5652 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.632, allocations: 8.031 kB / 0.5652 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005092/0.6325, allocations: 123.8 kB / 0.5654 GB, free: 41.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007178/0.6332, allocations: 318.3 kB / 0.5657 GB, free: 41.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.497e-05/0.6333, allocations: 15.98 kB / 0.5657 GB, free: 41.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004074/0.6374, allocations: 5.482 MB / 0.571 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.6374, allocations: 7.984 kB / 0.571 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002407/0.6398, allocations: 2.072 MB / 0.5731 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003106/0.643, allocations: 3.071 MB / 0.5761 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/0.6436, allocations: 356.2 kB / 0.5764 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.6438, allocations: 23.89 kB / 0.5764 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007037/0.6445, allocations: 35.97 kB / 0.5765 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.6447, allocations: 100.8 kB / 0.5766 GB, free: 29.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.593e-05/0.6448, allocations: 47.98 kB / 0.5766 GB, free: 29.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008167/0.6456, allocations: 0.6718 MB / 0.5773 GB, free: 28.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003202/0.6488, allocations: 0.6563 MB / 0.5779 GB, free: 27.98 MB / 378.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_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.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.0005211/0.6494, allocations: 357.7 kB / 0.5782 GB, free: 27.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003191/0.6526, allocations: 2.699 MB / 0.5809 GB, free: 24.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6526, allocations: 4 kB / 0.5809 GB, free: 24.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.6538, allocations: 1.071 MB / 0.5819 GB, free: 23.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.6549, allocations: 243.8 kB / 0.5822 GB, free: 23.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004518/0.6595, allocations: 2.369 MB / 0.5845 GB, free: 21.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009159/0.6604, allocations: 1.42 MB / 0.5859 GB, free: 19.63 MB / 378.7 MB Notification: Performance of SimCode: time 3.8e-07/0.6604, allocations: 0 / 0.5859 GB, free: 19.63 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive_fmu --startTime=0 --stopTime=24 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1)