Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoBLDCVoltages.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) 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) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) Running command: translateModel(BLDC.Examples.DemoBLDCVoltages,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCVoltages") translateModel(BLDC.Examples.DemoBLDCVoltages,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCVoltages") [: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/BLDC 1.9.0/package.mo): time 0.0195/0.0195, allocations: 2.548 MB / 9.825 MB, free: 444 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 185.8 kB / 10.97 MB, free: 1.891 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 221.4 MB / 233.4 MB, free: 4.066 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.001291/0.001292, allocations: 92.67 kB / 284.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.185e-06/8.235e-06, allocations: 0 / 341.9 MB, free: 6.512 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1698, allocations: 51.01 MB / 392.9 MB, free: 3.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5927, allocations: 90.26 MB / 483.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001663/0.593, allocations: 71.92 kB / 483.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1241/0.7171, allocations: 46.78 MB / 0.5176 GB, free: 15.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003069/0.7174, allocations: 67.98 kB / 0.5176 GB, free: 15.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 627 * Number of variables: 627 Notification: Performance of Generate backend data structure: time 0.008878/0.7263, allocations: 2.84 MB / 0.5204 GB, free: 12.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.7264, allocations: 12.03 kB / 0.5204 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001623/0.728, allocations: 320.2 kB / 0.5207 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.7382, allocations: 3.271 MB / 0.5239 GB, free: 9.059 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.7386, allocations: 84 kB / 0.524 GB, free: 8.977 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/0.7397, allocations: 140 kB / 0.5241 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007706/0.7474, allocations: 3.172 MB / 0.5272 GB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008469/0.7559, allocations: 3.241 MB / 0.5304 GB, free: 2.258 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.453e-05/0.756, allocations: 11.92 kB / 0.5304 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005324/0.7566, allocations: 0 / 0.5304 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.7567, allocations: 120.6 kB / 0.5305 GB, free: 2.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02181/0.7785, allocations: 11.42 MB / 0.5417 GB, free: 6.391 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003623/0.7822, allocations: 2.303 MB / 0.5439 GB, free: 4.074 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.7847, allocations: 1.527 MB / 0.5454 GB, free: 2.551 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.7849, allocations: 98.41 kB / 0.5455 GB, free: 2.438 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/0.785, allocations: 51.98 kB / 0.5455 GB, free: 2.379 MB / 426.7 MB Notification: Performance of pre-optimization done (n=163): time 3.787e-06/0.785, allocations: 3.938 kB / 0.5456 GB, free: 2.375 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.1692/0.9542, allocations: 2.669 MB / 0.5482 GB, free: 159.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.9543, allocations: 67.16 kB / 0.5482 GB, free: 159.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00242/0.9567, allocations: 1.523 MB / 0.5497 GB, free: 159.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003613/0.9571, allocations: 25.7 kB / 0.5497 GB, free: 159 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004735/0.9576, allocations: 0.872 MB / 0.5506 GB, free: 158.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004482/0.958, allocations: 476.3 kB / 0.551 GB, free: 158.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-05/0.9581, allocations: 3.719 kB / 0.551 GB, free: 158.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.9582, allocations: 383.3 kB / 0.5514 GB, free: 158.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.9595, allocations: 0.9753 MB / 0.5524 GB, free: 158.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.9609, allocations: 1.404 MB / 0.5537 GB, free: 157.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.9625, allocations: 1.087 MB / 0.5548 GB, free: 157.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.9625, allocations: 3.906 kB / 0.5548 GB, free: 157.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005296/0.9678, allocations: 3.162 MB / 0.5579 GB, free: 157.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.9678, allocations: 7.375 kB / 0.5579 GB, free: 157.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.468e-05/0.9679, allocations: 12.62 kB / 0.5579 GB, free: 157.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00236/0.9702, allocations: 1.235 MB / 0.5591 GB, free: 157.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000862/0.9711, allocations: 235.5 kB / 0.5593 GB, free: 157.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/0.9853, allocations: 13.61 MB / 0.5726 GB, free: 151.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/0.9875, allocations: 151.8 kB / 0.5728 GB, free: 151.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002707/0.9878, allocations: 75.48 kB / 0.5728 GB, free: 151.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 45 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5],inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_p[4].y,inverter.andCondition_p[5].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.andCondition_n[4].y,inverter.andCondition_n[5].y,inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[5].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[5].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {4 11,4 13,4 13,4 13,4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004381/0.9883, allocations: 179.4 kB / 0.573 GB, free: 151.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000394/0.9887, allocations: 192.1 kB / 0.5732 GB, free: 151 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.9927, allocations: 2.841 MB / 0.576 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.9928, allocations: 16.97 kB / 0.576 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.9928, allocations: 2.906 kB / 0.576 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.9928, allocations: 7.359 kB / 0.576 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/1.003, allocations: 6.365 MB / 0.5822 GB, free: 147.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/1.003, allocations: 3.844 kB / 0.5822 GB, free: 147.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006214/1.004, allocations: 134.5 kB / 0.5823 GB, free: 147.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002298/1.006, allocations: 1.2 MB / 0.5835 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/1.006, allocations: 11.19 kB / 0.5835 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/1.019, allocations: 13.32 MB / 0.5965 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.48e-05/1.019, allocations: 9.219 kB / 0.5966 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007173/1.026, allocations: 4.894 MB / 0.6013 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/1.027, allocations: 0.5351 MB / 0.6019 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003627/1.028, allocations: 6.469 kB / 0.6019 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/1.029, allocations: 53.31 kB / 0.6019 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005116/1.029, allocations: 228.8 kB / 0.6021 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/1.029, allocations: 48.27 kB / 0.6022 GB, free: 135.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002109/1.031, allocations: 1.125 MB / 0.6033 GB, free: 134.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002943/1.034, allocations: 0.6785 MB / 0.6039 GB, free: 134.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (constantSpeed.phi) * Number of discrete variables: 45 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[5].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[5].off,inverter.andCondition_p[1].y,electronicCommutator.fire_p[1],inverter.andCondition_p[2].y,electronicCommutator.fire_p[2],inverter.andCondition_p[3].y,electronicCommutator.fire_p[3],inverter.andCondition_p[4].y,electronicCommutator.fire_p[4],inverter.andCondition_p[5].y,electronicCommutator.fire_p[5],inverter.andCondition_n[1].y,electronicCommutator.fire_n[1],inverter.andCondition_n[2].y,electronicCommutator.fire_n[2],inverter.andCondition_n[3].y,electronicCommutator.fire_n[3],inverter.andCondition_n[4].y,electronicCommutator.fire_n[4],inverter.andCondition_n[5].y,electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {4 12,4 12,4 12,4 12,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004578/1.035, allocations: 183.4 kB / 0.6041 GB, free: 134.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004842/1.04, allocations: 3.109 MB / 0.6071 GB, free: 132.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.04, allocations: 0 / 0.6071 GB, free: 132.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0033/1.043, allocations: 2.504 MB / 0.6096 GB, free: 130.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002775/1.046, allocations: 475.5 kB / 0.61 GB, free: 130.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/1.059, allocations: 4.72 MB / 0.6147 GB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002905/1.062, allocations: 2.282 MB / 0.6169 GB, free: 124.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.533e-06/1.062, allocations: 0 / 0.6169 GB, free: 124.4 MB / 426.7 MB Notification: Performance of Templates: time 0.0591/1.121, allocations: 38.46 MB / 0.6544 GB, free: 90.88 MB / 426.7 MB make -j1 -f BLDC_BLDC.Examples.DemoBLDCVoltages.makefile (rm -f BLDC_BLDC.Examples.DemoBLDCVoltages.pipe ; mkfifo BLDC_BLDC.Examples.DemoBLDCVoltages.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoBLDCVoltages.pipe >> ../files/BLDC_BLDC.Examples.DemoBLDCVoltages.sim & ./BLDC_BLDC.Examples.DemoBLDCVoltages -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoBLDCVoltages.pipe 2>&1)