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.01238/0.01238, allocations: 2.543 MB / 10.02 MB, free: 420 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.0009178/0.0009179, allocations: 176.7 kB / 11.17 MB, free: 1.488 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.266/1.266, allocations: 221.5 MB / 233.7 MB, free: 4.027 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.0008979/0.0008982, allocations: 104.3 kB / 285.2 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.275e-05/1.279e-05, allocations: 0 / 342.4 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08353/0.08355, allocations: 51.01 MB / 393.4 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2866/0.3702, allocations: 90.34 MB / 483.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.3704, allocations: 63.97 kB / 483.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1161/0.4865, allocations: 47.08 MB / 0.5184 GB, free: 15.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4866, allocations: 0 / 0.5184 GB, free: 15.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002596/0.4868, allocations: 67.98 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.007679/0.4945, allocations: 2.874 MB / 0.5213 GB, free: 12.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4946, allocations: 12.02 kB / 0.5213 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.4957, allocations: 324.1 kB / 0.5216 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008021/0.5037, allocations: 3.256 MB / 0.5248 GB, free: 8.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.5039, allocations: 84 kB / 0.5249 GB, free: 8.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006112/0.5045, allocations: 140 kB / 0.525 GB, free: 8.191 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005752/0.5103, allocations: 3.094 MB / 0.528 GB, free: 5.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006279/0.5166, allocations: 3.179 MB / 0.5311 GB, free: 1.754 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.217e-05/0.5167, allocations: 3.938 kB / 0.5312 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002866/0.5169, allocations: 4 kB / 0.5312 GB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.5171, allocations: 104.7 kB / 0.5313 GB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01702/0.5341, allocations: 11.34 MB / 0.5423 GB, free: 5.996 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003429/0.5376, allocations: 2.519 MB / 0.5448 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002011/0.5396, allocations: 1.492 MB / 0.5462 GB, free: 1.973 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/0.5398, allocations: 102.4 kB / 0.5463 GB, free: 1.852 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.5398, allocations: 47.88 kB / 0.5464 GB, free: 1.797 MB / 426.7 MB Notification: Performance of pre-optimization done (n=163): time 3.757e-06/0.5398, allocations: 0 / 0.5464 GB, free: 1.797 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.1882/0.728, allocations: 2.556 MB / 0.5489 GB, free: 110.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.7281, allocations: 74.33 kB / 0.549 GB, free: 110.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.7303, allocations: 1.498 MB / 0.5504 GB, free: 110.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.7306, allocations: 26.73 kB / 0.5504 GB, free: 110.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006408/0.7312, allocations: 1.104 MB / 0.5515 GB, free: 109.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003722/0.7316, allocations: 471.7 kB / 0.552 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.607e-05/0.7317, allocations: 2.344 kB / 0.552 GB, free: 109.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.7318, allocations: 382.5 kB / 0.5523 GB, free: 109.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.7331, allocations: 0.9371 MB / 0.5533 GB, free: 109.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.7344, allocations: 1.367 MB / 0.5546 GB, free: 108.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.736, allocations: 1.058 MB / 0.5556 GB, free: 108.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.7361, allocations: 7.312 kB / 0.5556 GB, free: 108.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004807/0.7409, allocations: 3.084 MB / 0.5586 GB, free: 108.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.7409, allocations: 11.12 kB / 0.5587 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/0.741, allocations: 13.19 kB / 0.5587 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/0.7434, allocations: 1.205 MB / 0.5598 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008631/0.7443, allocations: 240.6 kB / 0.5601 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/0.7587, allocations: 14.89 MB / 0.5746 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.7606, allocations: 183 kB / 0.5748 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.7607, allocations: 73.91 kB / 0.5749 GB, free: 100.4 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.0003566/0.7611, allocations: 194.8 kB / 0.575 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/0.7614, allocations: 190.5 kB / 0.5752 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004324/0.7657, allocations: 2.738 MB / 0.5779 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.7657, allocations: 18.56 kB / 0.5779 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.7658, allocations: 0 / 0.5779 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.7658, allocations: 7.594 kB / 0.5779 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008012/0.7738, allocations: 6.201 MB / 0.584 GB, free: 96.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.7738, allocations: 3.875 kB / 0.584 GB, free: 96.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005035/0.7743, allocations: 135.2 kB / 0.5841 GB, free: 96.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.7762, allocations: 1.176 MB / 0.5853 GB, free: 96.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.723e-05/0.7763, allocations: 11.47 kB / 0.5853 GB, free: 96.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.7878, allocations: 14.58 MB / 0.5995 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.7879, allocations: 8.906 kB / 0.5995 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00467/0.7925, allocations: 4.698 MB / 0.6041 GB, free: 83.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008169/0.7934, allocations: 0.5352 MB / 0.6046 GB, free: 83.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.7936, allocations: 10.16 kB / 0.6046 GB, free: 83.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009175/0.7945, allocations: 77.58 kB / 0.6047 GB, free: 83.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005138/0.795, allocations: 288.3 kB / 0.605 GB, free: 83.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.935e-05/0.7951, allocations: 48 kB / 0.605 GB, free: 83.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001189/0.7963, allocations: 1.101 MB / 0.6061 GB, free: 82.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7964, allocations: 0 / 0.6061 GB, free: 82.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002165/0.7985, allocations: 0.7001 MB / 0.6068 GB, free: 82.81 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.0003062/0.7988, allocations: 194.6 kB / 0.607 GB, free: 82.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003578/0.8024, allocations: 3.245 MB / 0.6101 GB, free: 81.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.8024, allocations: 3.594 kB / 0.6101 GB, free: 81.12 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002657/0.8051, allocations: 2.646 MB / 0.6127 GB, free: 79.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.8068, allocations: 0.4928 MB / 0.6132 GB, free: 79.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007946/0.8148, allocations: 4.598 MB / 0.6177 GB, free: 77.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/0.8163, allocations: 2.218 MB / 0.6199 GB, free: 76.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001203/0.8175, allocations: 464.1 kB / 0.6203 GB, free: 76.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002594/0.8177, allocations: 116.8 kB / 0.6204 GB, free: 76.81 MB / 426.7 MB Notification: Performance of SimCode: time 6.22e-07/0.8177, allocations: 0 / 0.6204 GB, free: 76.81 MB / 426.7 MB Notification: Performance of Templates: time 0.04663/0.8644, allocations: 37.25 MB / 0.6568 GB, free: 44.59 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)