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.01095/0.01095, allocations: 2.578 MB / 18.53 MB, free: 3.18 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.0008165/0.0008165, allocations: 184.8 kB / 20 MB, free: 1.707 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.36/1.36, allocations: 223.3 MB / 244.6 MB, free: 8.391 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.0009039/0.0009039, allocations: 100.8 kB / 296.4 MB, free: 7.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004527, allocations: 16 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2325, allocations: 51 MB / 409.1 MB, free: 28.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.349, allocations: 91.17 MB / 0.4885 GB, free: 1.645 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.3493, allocations: 63.98 kB / 0.4886 GB, free: 1.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3903/0.7397, allocations: 47.36 MB / 0.5348 GB, free: 80.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.7397, allocations: 3.938 kB / 0.5348 GB, free: 80 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003812/0.7401, allocations: 70.72 kB / 0.5349 GB, free: 79.94 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.01041/0.7506, allocations: 3.262 MB / 0.5381 GB, free: 76.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.7506, allocations: 8.031 kB / 0.5381 GB, free: 76.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001527/0.7522, allocations: 329 kB / 0.5384 GB, free: 76.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006879/0.7591, allocations: 2.467 MB / 0.5408 GB, free: 73.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.7593, allocations: 185.1 kB / 0.541 GB, free: 73.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/0.7605, allocations: 232.4 kB / 0.5412 GB, free: 73.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.7706, allocations: 3.609 MB / 0.5447 GB, free: 69.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/0.7708, allocations: 3.938 kB / 0.5447 GB, free: 69.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008913/0.7717, allocations: 100 kB / 0.5448 GB, free: 69.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.7719, allocations: 112.6 kB / 0.5449 GB, free: 69.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007474/0.7793, allocations: 3.371 MB / 0.5482 GB, free: 66.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02007/0.7995, allocations: 11.83 MB / 0.5598 GB, free: 54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003846/0.8034, allocations: 2.622 MB / 0.5623 GB, free: 51.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.8058, allocations: 1.562 MB / 0.5639 GB, free: 49.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.806, allocations: 98.41 kB / 0.5639 GB, free: 49.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.8061, allocations: 51.88 kB / 0.564 GB, free: 49.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 3.967e-06/0.8061, allocations: 0 / 0.564 GB, free: 49.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.01219/0.8183, allocations: 5.657 MB / 0.5695 GB, free: 43.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.8184, allocations: 72.72 kB / 0.5696 GB, free: 43.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003701/0.8221, allocations: 1.998 MB / 0.5715 GB, free: 41.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002734/0.8224, allocations: 53.7 kB / 0.5716 GB, free: 41.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008868/0.8233, allocations: 1.117 MB / 0.5727 GB, free: 40.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005806/0.8239, allocations: 493.1 kB / 0.5732 GB, free: 40.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.824, allocations: 36 kB / 0.5732 GB, free: 40.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.8242, allocations: 381.8 kB / 0.5736 GB, free: 39.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.826, allocations: 0.9993 MB / 0.5745 GB, free: 38.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001897/0.8279, allocations: 1.447 MB / 0.5759 GB, free: 37.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003332/0.8312, allocations: 2.334 MB / 0.5782 GB, free: 34.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.313e-05/0.8313, allocations: 4 kB / 0.5782 GB, free: 34.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005528/0.8369, allocations: 3.334 MB / 0.5815 GB, free: 31.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.8369, allocations: 12 kB / 0.5815 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-05/0.8369, allocations: 15.98 kB / 0.5815 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/0.8394, allocations: 1.224 MB / 0.5827 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008467/0.8402, allocations: 243.5 kB / 0.5829 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0153/0.8556, allocations: 15.39 MB / 0.598 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.8575, allocations: 218.2 kB / 0.5982 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000355/0.8579, allocations: 72 kB / 0.5982 GB, free: 13.32 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 (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.002301/0.8602, allocations: 1.013 MB / 0.5992 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000712/0.8609, allocations: 201.6 kB / 0.5994 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005557/0.8665, allocations: 2.958 MB / 0.6023 GB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.8666, allocations: 16 kB / 0.6023 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.8666, allocations: 3.938 kB / 0.6023 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.8666, allocations: 11.97 kB / 0.6023 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.8795, allocations: 6.715 MB / 0.6089 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/0.8795, allocations: 4 kB / 0.6089 GB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/0.8801, allocations: 127.7 kB / 0.609 GB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002274/0.8824, allocations: 1.194 MB / 0.6102 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/0.8825, allocations: 39.94 kB / 0.6102 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01773/0.9003, allocations: 15.07 MB / 0.625 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.397e-06/0.9003, allocations: 11.94 kB / 0.625 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009668/0.91, allocations: 4.61 MB / 0.6295 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.9116, allocations: 0.5567 MB / 0.63 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006046/0.9122, allocations: 32 kB / 0.63 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.9137, allocations: 95.94 kB / 0.6301 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007589/0.9144, allocations: 292.6 kB / 0.6304 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.9146, allocations: 48 kB / 0.6305 GB, free: 11.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002912/0.9175, allocations: 1.365 MB / 0.6318 GB, free: 10.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9175, allocations: 0 / 0.6318 GB, free: 10.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004007/0.9216, allocations: 0.7677 MB / 0.6325 GB, free: 9.242 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 (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.0006362/0.9222, allocations: 215 kB / 0.6327 GB, free: 9.023 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006764/0.929, allocations: 3.485 MB / 0.6362 GB, free: 5.473 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.929, allocations: 0 / 0.6362 GB, free: 5.473 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004657/0.9337, allocations: 2.786 MB / 0.6389 GB, free: 2.621 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005207/0.9389, allocations: 0.5761 MB / 0.6394 GB, free: 2.051 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.9539, allocations: 6.364 MB / 0.6457 GB, free: 11.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003152/0.9572, allocations: 2.167 MB / 0.6478 GB, free: 9.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001987/0.9592, allocations: 477.2 kB / 0.6482 GB, free: 8.941 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000498/0.9597, allocations: 119.4 kB / 0.6483 GB, free: 8.824 MB / 426.7 MB Notification: Performance of SimCode: time 1.173e-06/0.9597, allocations: 0 / 0.6483 GB, free: 8.824 MB / 426.7 MB Notification: Performance of Templates: time 0.3012/1.261, allocations: 43.05 MB / 0.6904 GB, free: 121.8 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)