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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.02688/0.02688, allocations: 2.575 MB / 17.52 MB, free: 4.191 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001318, allocations: 189.3 kB / 18.99 MB, free: 3.004 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 223.2 MB / 243.5 MB, free: 8.543 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 97.27 kB / 295.3 MB, free: 8.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000415/0.000415, allocations: 16 kB / 356.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2241, allocations: 51.01 MB / 407.9 MB, free: 28.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.3366, allocations: 91.06 MB / 498.9 MB, free: 1.793 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.3369, allocations: 72.53 kB / 499 MB, free: 1.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3446/0.6815, allocations: 47.49 MB / 0.5337 GB, free: 80.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.6815, allocations: 4 kB / 0.5337 GB, free: 80.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003822/0.6819, allocations: 70.11 kB / 0.5338 GB, free: 79.97 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: 627 * Number of variables: 627 Notification: Performance of Generate backend data structure: time 0.01052/0.6924, allocations: 3.285 MB / 0.537 GB, free: 76.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.6925, allocations: 12.03 kB / 0.537 GB, free: 76.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001439/0.694, allocations: 357.9 kB / 0.5373 GB, free: 76.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/0.6955, allocations: 324.1 kB / 0.5376 GB, free: 75.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008986/0.7045, allocations: 3.362 MB / 0.5409 GB, free: 72.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.7046, allocations: 184.8 kB / 0.5411 GB, free: 72.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003559/0.705, allocations: 232 kB / 0.5413 GB, free: 72.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005953/0.7109, allocations: 3.578 MB / 0.5448 GB, free: 68.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.758e-05/0.711, allocations: 3.938 kB / 0.5448 GB, free: 68.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.7113, allocations: 104 kB / 0.5449 GB, free: 68.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.7114, allocations: 116.6 kB / 0.545 GB, free: 68.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00541/0.7168, allocations: 3.364 MB / 0.5483 GB, free: 64.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.7336, allocations: 11.82 MB / 0.5599 GB, free: 52.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003631/0.7373, allocations: 2.622 MB / 0.5624 GB, free: 50.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.7375, allocations: 106.4 kB / 0.5625 GB, free: 50 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/0.7375, allocations: 51.88 kB / 0.5626 GB, free: 49.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 5.02e-06/0.7375, allocations: 0 / 0.5626 GB, free: 49.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.01056/0.7481, allocations: 5.457 MB / 0.5679 GB, free: 44.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.7482, allocations: 68.72 kB / 0.568 GB, free: 44.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002542/0.7507, allocations: 1.794 MB / 0.5697 GB, free: 42.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.7509, allocations: 49.7 kB / 0.5698 GB, free: 42.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006342/0.7515, allocations: 1.121 MB / 0.5709 GB, free: 41.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/0.7519, allocations: 493.1 kB / 0.5713 GB, free: 40.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.454e-05/0.752, allocations: 36 kB / 0.5714 GB, free: 40.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.7521, allocations: 381.8 kB / 0.5717 GB, free: 40.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.7535, allocations: 1.011 MB / 0.5727 GB, free: 39.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/0.7552, allocations: 1.444 MB / 0.5741 GB, free: 37.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.7567, allocations: 1.114 MB / 0.5752 GB, free: 36.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/0.7567, allocations: 4 kB / 0.5752 GB, free: 36.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005029/0.7618, allocations: 3.326 MB / 0.5785 GB, free: 33.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.7618, allocations: 8 kB / 0.5785 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.7619, allocations: 16 kB / 0.5785 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/0.7642, allocations: 1.184 MB / 0.5796 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008996/0.7651, allocations: 255.5 kB / 0.5799 GB, free: 31.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/0.779, allocations: 15.19 MB / 0.5947 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/0.7812, allocations: 214.4 kB / 0.5949 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.7814, allocations: 75.98 kB / 0.595 GB, free: 15.68 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 151 * 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 11,4 11,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.002054/0.7835, allocations: 1.011 MB / 0.596 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005844/0.7841, allocations: 205.5 kB / 0.5962 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004496/0.7886, allocations: 2.955 MB / 0.5991 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.7886, allocations: 23.95 kB / 0.5991 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7886, allocations: 4 kB / 0.5991 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.7887, allocations: 7.969 kB / 0.5991 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.7988, allocations: 6.238 MB / 0.6052 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/0.7988, allocations: 7.953 kB / 0.6052 GB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000565/0.7994, allocations: 135.7 kB / 0.6053 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002261/0.8017, allocations: 1.17 MB / 0.6065 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.8018, allocations: 39.98 kB / 0.6065 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01725/0.8191, allocations: 15.18 MB / 0.6213 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.8191, allocations: 11.94 kB / 0.6213 GB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008802/0.828, allocations: 4.95 MB / 0.6262 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.8296, allocations: 0.5529 MB / 0.6267 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005978/0.8302, allocations: 39.98 kB / 0.6268 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.8313, allocations: 91.89 kB / 0.6268 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006541/0.832, allocations: 284.8 kB / 0.6271 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.8321, allocations: 47.98 kB / 0.6272 GB, free: 13.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002183/0.8343, allocations: 1.358 MB / 0.6285 GB, free: 12.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8343, allocations: 0 / 0.6285 GB, free: 12.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003095/0.8374, allocations: 0.7677 MB / 0.6292 GB, free: 11.54 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 87 * 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 11,4 11,4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.008386/0.8458, allocations: 6.911 MB / 0.636 GB, free: 4.449 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005927/0.8518, allocations: 3.427 MB / 0.6393 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/0.8518, allocations: 0 / 0.6393 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004342/0.8562, allocations: 2.768 MB / 0.642 GB, free: 14.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/0.8591, allocations: 0.5637 MB / 0.6426 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03767/0.8968, allocations: 26.39 MB / 0.6684 GB, free: 2.062 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2188/1.116, allocations: 2.208 MB / 0.6705 GB, free: 130.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002208/1.118, allocations: 495.9 kB / 0.671 GB, free: 130.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/1.119, allocations: 0.8989 MB / 0.6719 GB, free: 130.3 MB / 442.7 MB Notification: Performance of SimCode: time 8.42e-07/1.12, allocations: 0 / 0.6719 GB, free: 130.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1011/1.221, allocations: 62.64 MB / 0.733 GB, free: 92.12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/1.221, allocations: 174 kB / 0.7332 GB, free: 91.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.604/4.825, allocations: 2.734 kB / 0.7332 GB, free: 91.88 MB / 442.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)