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.0215/0.0215, allocations: 2.55 MB / 10.02 MB, free: 424 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.001287/0.001287, allocations: 185.4 kB / 11.18 MB, free: 1.484 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.39/1.39, allocations: 221.5 MB / 233.7 MB, free: 4.031 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.0008854/0.0008853, allocations: 94.83 kB / 285.2 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.208e-05/1.21e-05, allocations: 0 / 342.4 MB, free: 6.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 51.02 MB / 393.4 MB, free: 3.094 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3679/0.4747, allocations: 90.34 MB / 483.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.475, allocations: 71.97 kB / 483.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1196/0.5946, allocations: 47.07 MB / 0.5185 GB, free: 15.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5947, allocations: 0 / 0.5185 GB, free: 15.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003401/0.595, allocations: 71.92 kB / 0.5185 GB, free: 14.99 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.008674/0.6037, allocations: 2.871 MB / 0.5213 GB, free: 12.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.6038, allocations: 12.02 kB / 0.5213 GB, free: 12.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001345/0.6051, allocations: 332.2 kB / 0.5217 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009093/0.6142, allocations: 3.256 MB / 0.5248 GB, free: 8.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.6144, allocations: 83.98 kB / 0.5249 GB, free: 8.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007578/0.6152, allocations: 140 kB / 0.525 GB, free: 8.191 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006171/0.6214, allocations: 3.09 MB / 0.5281 GB, free: 5.094 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006089/0.6275, allocations: 3.175 MB / 0.5312 GB, free: 1.762 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.773e-05/0.6275, allocations: 4 kB / 0.5312 GB, free: 1.758 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001943/0.6277, allocations: 7.984 kB / 0.5312 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001173/0.6279, allocations: 108.7 kB / 0.5313 GB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01736/0.6452, allocations: 11.33 MB / 0.5423 GB, free: 6.004 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003841/0.6491, allocations: 2.527 MB / 0.5448 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002162/0.6513, allocations: 1.484 MB / 0.5463 GB, free: 1.977 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001673/0.6515, allocations: 110.4 kB / 0.5464 GB, free: 1.848 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.6515, allocations: 51.81 kB / 0.5464 GB, free: 1.789 MB / 426.7 MB Notification: Performance of pre-optimization done (n=163): time 3.687e-06/0.6516, allocations: 0 / 0.5464 GB, free: 1.789 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.2246/0.8762, allocations: 2.556 MB / 0.5489 GB, free: 109.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.8763, allocations: 68.91 kB / 0.549 GB, free: 109.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003686/0.8799, allocations: 1.496 MB / 0.5504 GB, free: 109.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003373/0.8803, allocations: 26.22 kB / 0.5505 GB, free: 109.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008734/0.8812, allocations: 1.102 MB / 0.5515 GB, free: 109.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005249/0.8817, allocations: 478.7 kB / 0.552 GB, free: 109.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.942e-05/0.8818, allocations: 0 / 0.552 GB, free: 109.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.8819, allocations: 380 kB / 0.5524 GB, free: 108.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.8833, allocations: 0.9362 MB / 0.5533 GB, free: 108.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.8849, allocations: 1.368 MB / 0.5546 GB, free: 108.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.8866, allocations: 1.06 MB / 0.5556 GB, free: 108.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.8867, allocations: 5.156 kB / 0.5556 GB, free: 108.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005256/0.8919, allocations: 3.083 MB / 0.5587 GB, free: 108.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.892, allocations: 13.67 kB / 0.5587 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.645e-05/0.892, allocations: 13.94 kB / 0.5587 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/0.8946, allocations: 1.205 MB / 0.5599 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009302/0.8955, allocations: 240.7 kB / 0.5601 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/0.9115, allocations: 14.89 MB / 0.5746 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.9135, allocations: 178.7 kB / 0.5748 GB, free: 99.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/0.9137, allocations: 74.59 kB / 0.5749 GB, free: 99.94 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.0004051/0.9141, allocations: 186.4 kB / 0.5751 GB, free: 99.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003841/0.9145, allocations: 191 kB / 0.5752 GB, free: 99.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00417/0.9187, allocations: 2.748 MB / 0.5779 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.9187, allocations: 15 kB / 0.5779 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.9187, allocations: 0 / 0.5779 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.9187, allocations: 7.344 kB / 0.5779 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008466/0.9272, allocations: 6.185 MB / 0.584 GB, free: 96.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.9272, allocations: 7.125 kB / 0.584 GB, free: 96.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005316/0.9278, allocations: 143.6 kB / 0.5841 GB, free: 96.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001989/0.9298, allocations: 1.172 MB / 0.5853 GB, free: 95.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.972e-05/0.9299, allocations: 16.97 kB / 0.5853 GB, free: 95.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01216/0.9421, allocations: 14.58 MB / 0.5995 GB, free: 85.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.9421, allocations: 4.531 kB / 0.5995 GB, free: 85.72 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.9472, allocations: 4.699 MB / 0.6041 GB, free: 83.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.9482, allocations: 0.5361 MB / 0.6046 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/0.9485, allocations: 13.78 kB / 0.6047 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009578/0.9494, allocations: 75.89 kB / 0.6047 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005657/0.95, allocations: 286.8 kB / 0.605 GB, free: 82.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.891e-05/0.9501, allocations: 49.67 kB / 0.605 GB, free: 82.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001343/0.9515, allocations: 1.098 MB / 0.6061 GB, free: 82.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9515, allocations: 0 / 0.6061 GB, free: 82.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002636/0.9541, allocations: 0.7041 MB / 0.6068 GB, free: 82.37 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.000382/0.9545, allocations: 189.1 kB / 0.607 GB, free: 82.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004022/0.9586, allocations: 3.246 MB / 0.6102 GB, free: 80.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.9586, allocations: 0 / 0.6102 GB, free: 80.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002884/0.9615, allocations: 2.651 MB / 0.6127 GB, free: 79.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.9635, allocations: 0.4901 MB / 0.6132 GB, free: 79.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008077/0.9716, allocations: 4.6 MB / 0.6177 GB, free: 77.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001612/0.9732, allocations: 2.216 MB / 0.6199 GB, free: 76.42 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001312/0.9745, allocations: 465.6 kB / 0.6203 GB, free: 76.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.9748, allocations: 119.1 kB / 0.6204 GB, free: 76.37 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.9748, allocations: 0 / 0.6204 GB, free: 76.37 MB / 426.7 MB Notification: Performance of Templates: time 0.05404/1.029, allocations: 37.24 MB / 0.6568 GB, free: 44.07 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)