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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.0157/0.0157, allocations: 2.572 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.0008949/0.000895, allocations: 181.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.232/1.232, allocations: 223.2 MB / 243.5 MB, free: 8.539 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.0008069/0.0008069, allocations: 98.81 kB / 295.3 MB, free: 8.051 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004002, allocations: 16 kB / 356.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1915, allocations: 51 MB / 407.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09809/0.2896, allocations: 91.06 MB / 498.8 MB, free: 1.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.2899, allocations: 73.25 kB / 498.9 MB, free: 1.777 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2776/0.5675, allocations: 47.49 MB / 0.5336 GB, free: 80.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5675, allocations: 0 / 0.5336 GB, free: 80.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002052/0.5678, allocations: 69.83 kB / 0.5337 GB, free: 80.06 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.008373/0.5761, allocations: 3.287 MB / 0.5369 GB, free: 76.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.5762, allocations: 8.031 kB / 0.5369 GB, free: 76.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00099/0.5772, allocations: 332.1 kB / 0.5372 GB, free: 76.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007166/0.5844, allocations: 3.35 MB / 0.5405 GB, free: 73.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.444e-05/0.5845, allocations: 180.8 kB / 0.5406 GB, free: 72.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002662/0.5848, allocations: 236 kB / 0.5409 GB, free: 72.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004537/0.5893, allocations: 3.577 MB / 0.5444 GB, free: 68.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.935e-05/0.5894, allocations: 7.938 kB / 0.5444 GB, free: 68.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002064/0.5896, allocations: 99.98 kB / 0.5445 GB, free: 68.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.912e-05/0.5897, allocations: 112.7 kB / 0.5446 GB, free: 68.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004284/0.5939, allocations: 3.371 MB / 0.5479 GB, free: 65.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.6063, allocations: 11.82 MB / 0.5594 GB, free: 53.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003088/0.6094, allocations: 2.63 MB / 0.562 GB, free: 50.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.6095, allocations: 106.4 kB / 0.5621 GB, free: 50.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.6095, allocations: 47.88 kB / 0.5621 GB, free: 50.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 3.387e-06/0.6095, allocations: 0 / 0.5621 GB, free: 50.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.009794/0.6193, allocations: 5.453 MB / 0.5674 GB, free: 44.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.6194, allocations: 64.72 kB / 0.5675 GB, free: 44.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/0.6215, allocations: 1.794 MB / 0.5693 GB, free: 42.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.228e-05/0.6216, allocations: 49.7 kB / 0.5693 GB, free: 42.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005071/0.6221, allocations: 1.133 MB / 0.5704 GB, free: 41.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/0.6224, allocations: 493.1 kB / 0.5709 GB, free: 41.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.737e-05/0.6225, allocations: 36 kB / 0.5709 GB, free: 41.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.6226, allocations: 377.9 kB / 0.5713 GB, free: 40.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.624, allocations: 1.011 MB / 0.5723 GB, free: 39.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.6254, allocations: 1.452 MB / 0.5737 GB, free: 38.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.6268, allocations: 1.103 MB / 0.5748 GB, free: 37.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.6269, allocations: 4 kB / 0.5748 GB, free: 37.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004246/0.6311, allocations: 3.326 MB / 0.578 GB, free: 33.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.6311, allocations: 23.98 kB / 0.578 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.6312, allocations: 12 kB / 0.578 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/0.6331, allocations: 1.179 MB / 0.5792 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007515/0.6339, allocations: 251.5 kB / 0.5794 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/0.6456, allocations: 15.19 MB / 0.5943 GB, free: 16.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.647, allocations: 218.4 kB / 0.5945 GB, free: 16.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.6471, allocations: 72 kB / 0.5945 GB, free: 16.14 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.001311/0.6484, allocations: 1.013 MB / 0.5955 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002297/0.6486, allocations: 209.5 kB / 0.5957 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/0.6524, allocations: 2.954 MB / 0.5986 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.6524, allocations: 16 kB / 0.5986 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.6524, allocations: 3.953 kB / 0.5986 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.6524, allocations: 7.969 kB / 0.5987 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007961/0.6604, allocations: 6.235 MB / 0.6047 GB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.6605, allocations: 7.938 kB / 0.6047 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005173/0.661, allocations: 143.7 kB / 0.6049 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.6629, allocations: 1.182 MB / 0.606 GB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.6631, allocations: 32 kB / 0.6061 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/0.6791, allocations: 15.18 MB / 0.6209 GB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.6791, allocations: 11.94 kB / 0.6209 GB, free: 4.293 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006907/0.686, allocations: 4.95 MB / 0.6257 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/0.6874, allocations: 0.5532 MB / 0.6263 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000222/0.6876, allocations: 32 kB / 0.6263 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009124/0.6885, allocations: 95.88 kB / 0.6264 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000562/0.6891, allocations: 280.8 kB / 0.6267 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.6892, allocations: 55.97 kB / 0.6267 GB, free: 14.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001801/0.691, allocations: 1.358 MB / 0.628 GB, free: 12.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.402e-06/0.691, allocations: 0 / 0.628 GB, free: 12.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002245/0.6933, allocations: 0.7676 MB / 0.6288 GB, free: 11.99 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.0003649/0.6936, allocations: 218.9 kB / 0.629 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005092/0.6987, allocations: 3.423 MB / 0.6324 GB, free: 8.281 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.6988, allocations: 4 kB / 0.6324 GB, free: 8.277 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003627/0.7024, allocations: 2.768 MB / 0.6351 GB, free: 5.445 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002042/0.7045, allocations: 0.5602 MB / 0.6356 GB, free: 4.891 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.7148, allocations: 6.572 MB / 0.642 GB, free: 14.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001833/0.7166, allocations: 2.213 MB / 0.6442 GB, free: 12 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001486/0.7181, allocations: 497.2 kB / 0.6447 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.7185, allocations: 131.4 kB / 0.6448 GB, free: 11.38 MB / 426.7 MB Notification: Performance of SimCode: time 8.81e-07/0.7185, allocations: 0 / 0.6448 GB, free: 11.38 MB / 426.7 MB Notification: Performance of Templates: time 0.2329/0.9513, allocations: 41.87 MB / 0.6857 GB, free: 119.3 MB / 442.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)