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: "" <> buildModelFMU(BLDC.Examples.DemoBLDCVoltages,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCVoltages",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoBLDCVoltages,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCVoltages",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/BLDC 1.9.0/package.mo): time 0.01421/0.01421, allocations: 2.541 MB / 9.822 MB, free: 448 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.001151/0.001151, allocations: 184.2 kB / 10.97 MB, free: 1.918 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.178/1.178, allocations: 221.4 MB / 233.4 MB, free: 4.109 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.0009484/0.0009483, allocations: 88.67 kB / 284.8 MB, free: 1.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1554/0.1564, allocations: 57.12 MB / 341.9 MB, free: 6.418 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.2419, allocations: 51.01 MB / 393 MB, free: 3.363 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2314/0.4733, allocations: 90.26 MB / 483.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.4736, allocations: 67.97 kB / 483.3 MB, free: 14.67 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: 627 * Number of variables: 627 Notification: Performance of Generate backend data structure: time 0.1321/0.6057, allocations: 49.7 MB / 0.5205 GB, free: 12.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.6057, allocations: 8 kB / 0.5205 GB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.607, allocations: 324.2 kB / 0.5208 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009196/0.6163, allocations: 3.271 MB / 0.524 GB, free: 8.945 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.6164, allocations: 87.97 kB / 0.5241 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006056/0.617, allocations: 132 kB / 0.5242 GB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006057/0.6231, allocations: 3.176 MB / 0.5273 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005272/0.6284, allocations: 3.241 MB / 0.5305 GB, free: 2.145 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-05/0.6284, allocations: 4 kB / 0.5305 GB, free: 2.141 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001997/0.6287, allocations: 8 kB / 0.5305 GB, free: 2.133 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.6288, allocations: 116.5 kB / 0.5306 GB, free: 2.016 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.6458, allocations: 11.41 MB / 0.5418 GB, free: 6.297 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/0.6489, allocations: 2.315 MB / 0.544 GB, free: 3.969 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002181/0.6511, allocations: 1.531 MB / 0.5455 GB, free: 2.441 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001616/0.6512, allocations: 94.42 kB / 0.5456 GB, free: 2.332 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.6513, allocations: 51.88 kB / 0.5456 GB, free: 2.273 MB / 426.7 MB Notification: Performance of pre-optimization done (n=163): time 4.167e-06/0.6513, allocations: 4 kB / 0.5456 GB, free: 2.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.1277/0.779, allocations: 2.659 MB / 0.5482 GB, free: 158.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.7791, allocations: 71.86 kB / 0.5483 GB, free: 158.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.7809, allocations: 1.524 MB / 0.5498 GB, free: 158.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/0.7812, allocations: 25.7 kB / 0.5498 GB, free: 158.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.7815, allocations: 0.873 MB / 0.5507 GB, free: 158.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003339/0.7818, allocations: 478.8 kB / 0.5511 GB, free: 157.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.7819, allocations: 0 / 0.5511 GB, free: 157.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.921e-05/0.782, allocations: 385.7 kB / 0.5515 GB, free: 157.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.7832, allocations: 0.9792 MB / 0.5525 GB, free: 157.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.7845, allocations: 1.405 MB / 0.5538 GB, free: 157 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.7858, allocations: 1.089 MB / 0.5549 GB, free: 157 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.7858, allocations: 3.281 kB / 0.5549 GB, free: 157 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00453/0.7904, allocations: 3.153 MB / 0.558 GB, free: 156.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.7904, allocations: 3.938 kB / 0.558 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/0.7905, allocations: 14.31 kB / 0.558 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/0.7929, allocations: 1.244 MB / 0.5592 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008675/0.7937, allocations: 234.8 kB / 0.5594 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.8063, allocations: 13.61 MB / 0.5727 GB, free: 150.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/0.8078, allocations: 154.7 kB / 0.5729 GB, free: 150.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.808, allocations: 73.22 kB / 0.5729 GB, free: 150.5 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.0003155/0.8083, allocations: 179.8 kB / 0.5731 GB, free: 150.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/0.8086, allocations: 191.8 kB / 0.5733 GB, free: 150.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/0.812, allocations: 2.843 MB / 0.5761 GB, free: 149.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.812, allocations: 18.56 kB / 0.5761 GB, free: 149.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.8121, allocations: 0 / 0.5761 GB, free: 149.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.8121, allocations: 7.688 kB / 0.5761 GB, free: 149.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008578/0.8207, allocations: 6.357 MB / 0.5823 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.8207, allocations: 2.812 kB / 0.5823 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.8213, allocations: 131.1 kB / 0.5824 GB, free: 146.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/0.8234, allocations: 1.212 MB / 0.5836 GB, free: 146.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.8235, allocations: 11.25 kB / 0.5836 GB, free: 146.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/0.8348, allocations: 13.33 MB / 0.5966 GB, free: 137.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/0.8349, allocations: 7.219 kB / 0.5967 GB, free: 137.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005705/0.8406, allocations: 4.877 MB / 0.6014 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007243/0.8478, allocations: 6.889 MB / 0.6081 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.8489, allocations: 0.5363 MB / 0.6087 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003253/0.8493, allocations: 11.52 kB / 0.6087 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.8504, allocations: 53.8 kB / 0.6087 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004138/0.8508, allocations: 229.6 kB / 0.6089 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.8509, allocations: 51.66 kB / 0.609 GB, free: 130.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001312/0.8522, allocations: 1.125 MB / 0.6101 GB, free: 129.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002514/0.8547, allocations: 0.6803 MB / 0.6108 GB, free: 128.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.0003786/0.8551, allocations: 195.3 kB / 0.6109 GB, free: 128.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003986/0.8591, allocations: 3.1 MB / 0.614 GB, free: 125.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.8592, allocations: 0 / 0.614 GB, free: 125.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003054/0.8622, allocations: 2.507 MB / 0.6164 GB, free: 123.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/0.8644, allocations: 473.2 kB / 0.6169 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009249/0.8737, allocations: 4.716 MB / 0.6215 GB, free: 119.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/0.8757, allocations: 2.288 MB / 0.6237 GB, free: 117.3 MB / 426.7 MB Notification: Performance of SimCode: time 7.72e-07/0.8757, allocations: 0 / 0.6237 GB, free: 117.3 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoBLDCVoltages_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoBLDCVoltages.fmu > BLDC_BLDC.Examples.DemoBLDCVoltages.pipe 2>&1)