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.01554/0.01554, allocations: 2.579 MB / 17.53 MB, free: 4.188 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.0007855/0.0007855, 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.138/1.138, allocations: 223.2 MB / 243.5 MB, free: 6.793 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.0008097/0.0008097, allocations: 94.62 kB / 295.3 MB, free: 7.816 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003753, allocations: 19.94 kB / 356.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1751, allocations: 51.01 MB / 407.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09183/0.267, allocations: 91.06 MB / 498.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.2672, allocations: 71.97 kB / 498.9 MB, free: 1.719 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2472/0.5145, allocations: 47.49 MB / 0.5336 GB, free: 80.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5145, allocations: 0 / 0.5336 GB, free: 80.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001559/0.5147, allocations: 70.66 kB / 0.5337 GB, free: 80.04 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.00578/0.5204, allocations: 3.294 MB / 0.5369 GB, free: 76.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.5205, allocations: 8.031 kB / 0.5369 GB, free: 76.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004413/0.5209, allocations: 324.2 kB / 0.5372 GB, free: 76.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006903/0.5278, allocations: 3.354 MB / 0.5405 GB, free: 73.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.528, allocations: 180.8 kB / 0.5407 GB, free: 72.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003142/0.5283, allocations: 239.9 kB / 0.5409 GB, free: 72.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004592/0.5329, allocations: 3.578 MB / 0.5444 GB, free: 68.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.915e-05/0.5329, allocations: 3.938 kB / 0.5444 GB, free: 68.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/0.5332, allocations: 100 kB / 0.5445 GB, free: 68.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.786e-05/0.5332, allocations: 108.7 kB / 0.5446 GB, free: 68.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004249/0.5375, allocations: 3.364 MB / 0.5479 GB, free: 65.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01166/0.5492, allocations: 11.82 MB / 0.5594 GB, free: 53.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.5522, allocations: 2.634 MB / 0.562 GB, free: 50.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.056e-05/0.5523, allocations: 94.42 kB / 0.5621 GB, free: 50.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.5524, allocations: 51.88 kB / 0.5621 GB, free: 50.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 3.085e-06/0.5524, allocations: 0 / 0.5621 GB, free: 50.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.00938/0.5618, allocations: 5.453 MB / 0.5675 GB, free: 44.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.5618, allocations: 68.72 kB / 0.5675 GB, free: 44.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.5637, allocations: 1.798 MB / 0.5693 GB, free: 42.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.058e-05/0.5638, allocations: 49.7 kB / 0.5693 GB, free: 42.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004969/0.5643, allocations: 1.129 MB / 0.5704 GB, free: 41.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.5646, allocations: 493.1 kB / 0.5709 GB, free: 41.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.537e-05/0.5647, allocations: 32 kB / 0.5709 GB, free: 41.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.5648, allocations: 385.8 kB / 0.5713 GB, free: 40.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.5661, allocations: 1.011 MB / 0.5723 GB, free: 39.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.5676, allocations: 1.448 MB / 0.5737 GB, free: 38.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.5689, allocations: 1.111 MB / 0.5748 GB, free: 37.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.569, allocations: 4 kB / 0.5748 GB, free: 37.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004172/0.5731, allocations: 3.322 MB / 0.578 GB, free: 33.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.5732, allocations: 12.33 kB / 0.578 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.5732, allocations: 24 kB / 0.5781 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001978/0.5752, allocations: 1.184 MB / 0.5792 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007434/0.5759, allocations: 251.5 kB / 0.5795 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.5877, allocations: 15.18 MB / 0.5943 GB, free: 16.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.5889, allocations: 222.4 kB / 0.5945 GB, free: 16.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.5891, allocations: 71.98 kB / 0.5946 GB, free: 16.11 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.001238/0.5903, allocations: 1.027 MB / 0.5956 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.5905, allocations: 205.5 kB / 0.5958 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003704/0.5942, allocations: 2.951 MB / 0.5986 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.5943, allocations: 16 kB / 0.5987 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.5943, allocations: 3.953 kB / 0.5987 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.5943, allocations: 7.969 kB / 0.5987 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007414/0.6017, allocations: 6.235 MB / 0.6048 GB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.6017, allocations: 4 kB / 0.6048 GB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005145/0.6022, allocations: 143.7 kB / 0.6049 GB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.6041, allocations: 1.17 MB / 0.606 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.74e-05/0.6042, allocations: 35.98 kB / 0.6061 GB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/0.6182, allocations: 15.19 MB / 0.6209 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.6182, allocations: 11.94 kB / 0.6209 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006538/0.6247, allocations: 4.942 MB / 0.6257 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/0.6259, allocations: 0.5569 MB / 0.6263 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002279/0.6261, allocations: 35.98 kB / 0.6263 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008965/0.627, allocations: 91.89 kB / 0.6264 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005094/0.6275, allocations: 296.6 kB / 0.6267 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.843e-05/0.6276, allocations: 44 kB / 0.6267 GB, free: 14.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001673/0.6293, allocations: 1.358 MB / 0.6281 GB, free: 12.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6293, allocations: 0 / 0.6281 GB, free: 12.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002091/0.6314, allocations: 0.7677 MB / 0.6288 GB, free: 11.96 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.0003237/0.6317, allocations: 215.1 kB / 0.629 GB, free: 11.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004637/0.6364, allocations: 3.431 MB / 0.6324 GB, free: 8.254 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.6364, allocations: 0 / 0.6324 GB, free: 8.254 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003444/0.6399, allocations: 2.772 MB / 0.6351 GB, free: 5.418 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.6415, allocations: 0.5727 MB / 0.6356 GB, free: 4.852 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009082/0.6506, allocations: 6.555 MB / 0.642 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/0.6524, allocations: 2.21 MB / 0.6442 GB, free: 11.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001222/0.6536, allocations: 0.4972 MB / 0.6447 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.6539, allocations: 123.4 kB / 0.6448 GB, free: 11.36 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.6539, allocations: 4 kB / 0.6448 GB, free: 11.36 MB / 426.7 MB Notification: Performance of Templates: time 0.1961/0.85, allocations: 41.88 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)