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.01132/0.01132, allocations: 2.536 MB / 15.09 MB, free: 204 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 178.1 kB / 16.35 MB, free: 4.02 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.399/1.399, allocations: 221.4 MB / 238.9 MB, free: 11.2 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.0009815/0.0009816, allocations: 94.95 kB / 290.4 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.099e-05/6.13e-05, allocations: 4 kB / 349.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3042, allocations: 51 MB / 400.4 MB, free: 31.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1199/0.4241, allocations: 91.01 MB / 491.4 MB, free: 3.918 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003455/0.4245, allocations: 67.97 kB / 491.5 MB, free: 3.852 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4485/0.873, allocations: 47.58 MB / 0.5264 GB, free: 83.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.8731, allocations: 0 / 0.5264 GB, free: 83.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002166/0.8733, allocations: 74.12 kB / 0.5265 GB, free: 83.15 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.007522/0.8808, allocations: 2.875 MB / 0.5293 GB, free: 80.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.8809, allocations: 11.97 kB / 0.5293 GB, free: 80.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008872/0.8818, allocations: 354 kB / 0.5296 GB, free: 79.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007996/0.8826, allocations: 324.2 kB / 0.53 GB, free: 79.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00783/0.8904, allocations: 3.259 MB / 0.5331 GB, free: 76.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.8906, allocations: 180.8 kB / 0.5333 GB, free: 76.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004069/0.891, allocations: 235.9 kB / 0.5335 GB, free: 75.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00505/0.896, allocations: 3.532 MB / 0.537 GB, free: 72.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.441e-05/0.8961, allocations: 7.938 kB / 0.537 GB, free: 72.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002175/0.8963, allocations: 96 kB / 0.5371 GB, free: 72.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.066e-05/0.8964, allocations: 112.7 kB / 0.5372 GB, free: 71.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00455/0.901, allocations: 3.282 MB / 0.5404 GB, free: 68.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01534/0.9164, allocations: 11.82 MB / 0.5519 GB, free: 56.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003139/0.9195, allocations: 2.591 MB / 0.5545 GB, free: 53.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001907/0.9215, allocations: 1.527 MB / 0.556 GB, free: 52.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001504/0.9217, allocations: 102.4 kB / 0.5561 GB, free: 52.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.9217, allocations: 47.88 kB / 0.5561 GB, free: 52.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 3.046e-06/0.9217, allocations: 0 / 0.5561 GB, free: 52.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.003629/0.9253, allocations: 2.689 MB / 0.5587 GB, free: 49.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.9254, allocations: 68.72 kB / 0.5588 GB, free: 49.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/0.9279, allocations: 1.778 MB / 0.5605 GB, free: 47.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/0.9281, allocations: 53.7 kB / 0.5606 GB, free: 47.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005554/0.9287, allocations: 1.125 MB / 0.5617 GB, free: 46.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004377/0.9292, allocations: 489.1 kB / 0.5621 GB, free: 45.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.894e-05/0.9293, allocations: 36 kB / 0.5622 GB, free: 45.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.9294, allocations: 377.9 kB / 0.5625 GB, free: 45.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.9306, allocations: 0.9683 MB / 0.5635 GB, free: 44.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.932, allocations: 1.409 MB / 0.5649 GB, free: 43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.9333, allocations: 1.071 MB / 0.5659 GB, free: 41.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.9333, allocations: 4 kB / 0.5659 GB, free: 41.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004569/0.9379, allocations: 3.264 MB / 0.5691 GB, free: 38.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.9379, allocations: 12 kB / 0.5691 GB, free: 38.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.938, allocations: 12 kB / 0.5691 GB, free: 38.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002317/0.9403, allocations: 1.229 MB / 0.5703 GB, free: 37.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008715/0.9412, allocations: 227.6 kB / 0.5705 GB, free: 37.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/0.9559, allocations: 15.36 MB / 0.5855 GB, free: 21.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.9579, allocations: 214.4 kB / 0.5857 GB, free: 20.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003874/0.9583, allocations: 79.98 kB / 0.5858 GB, free: 20.84 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 143 * 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.0005445/0.9589, allocations: 240.7 kB / 0.586 GB, free: 20.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005622/0.9595, allocations: 205.5 kB / 0.5862 GB, free: 20.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004377/0.9638, allocations: 2.904 MB / 0.5891 GB, free: 17.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.9639, allocations: 16 kB / 0.5891 GB, free: 17.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.9639, allocations: 0 / 0.5891 GB, free: 17.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.9639, allocations: 11.92 kB / 0.5891 GB, free: 17.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.9753, allocations: 6.645 MB / 0.5956 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.9754, allocations: 7.938 kB / 0.5956 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006132/0.976, allocations: 127.7 kB / 0.5957 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/0.9783, allocations: 1.187 MB / 0.5969 GB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001625/0.9785, allocations: 35.98 kB / 0.5969 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01557/0.9941, allocations: 15.03 MB / 0.6116 GB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/0.9941, allocations: 4 kB / 0.6116 GB, free: 9.578 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008282/1.002, allocations: 4.853 MB / 0.6163 GB, free: 4.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.004, allocations: 0.5606 MB / 0.6169 GB, free: 3.938 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006222/1.005, allocations: 32 kB / 0.6169 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/1.006, allocations: 91.88 kB / 0.617 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007621/1.007, allocations: 296.8 kB / 0.6173 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/1.007, allocations: 44 kB / 0.6173 GB, free: 3.484 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002849/1.01, allocations: 1.342 MB / 0.6186 GB, free: 2.152 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.01, allocations: 0 / 0.6186 GB, free: 2.152 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004054/1.014, allocations: 0.7678 MB / 0.6194 GB, free: 1.383 MB / 394.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 (88): * Single equations (assignments): 83 * 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.009611/1.024, allocations: 6.815 MB / 0.626 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006157/1.03, allocations: 3.383 MB / 0.6293 GB, free: 6.941 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/1.03, allocations: 0 / 0.6293 GB, free: 6.941 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004545/1.035, allocations: 2.743 MB / 0.632 GB, free: 4.133 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/1.038, allocations: 0.5654 MB / 0.6326 GB, free: 3.582 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.054, allocations: 5.443 MB / 0.6379 GB, free: 14.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00301/1.057, allocations: 2.217 MB / 0.6401 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001943/1.059, allocations: 481.2 kB / 0.6405 GB, free: 11.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/1.061, allocations: 0.8898 MB / 0.6414 GB, free: 10.4 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/1.061, allocations: 4 kB / 0.6414 GB, free: 10.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4141/1.475, allocations: 63.13 MB / 0.703 GB, free: 117.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.475, allocations: 142.5 kB / 0.7032 GB, free: 117.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.316/5.791, allocations: 0 / 0.7032 GB, free: 117.5 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)