Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoBLDCwithPWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoBLDCwithPWM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=399998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCwithPWM") translateModel(BLDC.Examples.DemoBLDCwithPWM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=399998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCwithPWM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.001231, allocations: 106.5 kB / 16.41 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 191 kB / 17.35 MB, free: 5.605 MB / 14.72 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: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01223/0.01223, allocations: 2.603 MB / 293.8 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 96.02 kB / 406 MB, free: 29.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06813/0.06975, allocations: 50.03 MB / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCwithPWM): time 0.01674/0.08651, allocations: 17.49 MB / 473.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00887/0.09541, allocations: 6.09 MB / 479.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001657/0.09708, allocations: 111.6 kB / 479.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.09952, allocations: 1.289 MB / 481 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002978/0.1025, allocations: 1.612 MB / 482.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001875/0.1044, allocations: 1.113 MB / 483.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005564/0.11, allocations: 6.692 MB / 490.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004945/0.115, allocations: 5.368 MB / 495.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002948/0.1179, allocations: 2.905 MB / 498.7 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003296/0.1212, allocations: 3.351 MB / 0.4903 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008395/0.1221, allocations: 0.8242 MB / 0.4911 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.1235, allocations: 1.05 MB / 0.4921 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001433/0.125, allocations: 2.002 MB / 0.4941 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003168/0.1282, allocations: 3.547 MB / 0.4975 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1788/0.307, allocations: 10.88 MB / 0.5082 GB, free: 23.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.307, allocations: 0 / 0.5082 GB, free: 23.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.307, allocations: 0 / 0.5082 GB, free: 23.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.3072, allocations: 0 / 0.5082 GB, free: 23.19 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1366 * Number of variables: 1366 Notification: Performance of Generate backend data structure: time 0.01505/0.3223, allocations: 7.144 MB / 0.5152 GB, free: 20.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3224, allocations: 12.12 kB / 0.5152 GB, free: 20.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00411/0.3265, allocations: 0.9904 MB / 0.5161 GB, free: 20.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005521/0.332, allocations: 3.778 MB / 0.5198 GB, free: 19.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.3322, allocations: 380.4 kB / 0.5202 GB, free: 19.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007194/0.333, allocations: 0.5019 MB / 0.5207 GB, free: 19.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.3435, allocations: 7.536 MB / 0.528 GB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.599e-05/0.3436, allocations: 14.67 kB / 0.528 GB, free: 16.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004896/0.3441, allocations: 208.9 kB / 0.5282 GB, free: 16.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001581/0.3442, allocations: 245.9 kB / 0.5285 GB, free: 16.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009376/0.3536, allocations: 6.78 MB / 0.5351 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0277/0.3813, allocations: 22.86 MB / 0.5574 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009144/0.3905, allocations: 6.038 MB / 0.5633 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004136/0.3947, allocations: 2.776 MB / 0.566 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/0.4073, allocations: 8.05 MB / 0.5739 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003697/0.411, allocations: 2.292 MB / 0.5761 GB, free: 4.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=303): time 5.119e-06/0.4111, allocations: 4 kB / 0.5761 GB, free: 4.281 MB / 414.1 MB Notification: Performance of matching and sorting (n=307): time 0.05365/0.4647, allocations: 20.38 MB / 0.596 GB, free: 15.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/0.4649, allocations: 376.5 kB / 0.5964 GB, free: 15.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004789/0.4697, allocations: 3.426 MB / 0.5997 GB, free: 11.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002611/0.47, allocations: 77.7 kB / 0.5998 GB, free: 11.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.4718, allocations: 2.247 MB / 0.602 GB, free: 9.527 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008163/0.4727, allocations: 0.9669 MB / 0.603 GB, free: 8.574 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009558/0.4736, allocations: 0.6063 MB / 0.6035 GB, free: 7.965 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.4738, allocations: 301.1 kB / 0.6038 GB, free: 7.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003023/0.4768, allocations: 1.753 MB / 0.6055 GB, free: 5.906 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003505/0.4803, allocations: 2.519 MB / 0.608 GB, free: 3.094 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006254/0.4866, allocations: 4.127 MB / 0.612 GB, free: 14.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.4866, allocations: 4 kB / 0.612 GB, free: 14.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=401) (initialization): time 0.009084/0.4957, allocations: 5.385 MB / 0.6173 GB, free: 9.406 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.155e-05/0.4957, allocations: 37.7 kB / 0.6173 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.4958, allocations: 20 kB / 0.6174 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003057/0.4988, allocations: 1.425 MB / 0.6187 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/0.5008, allocations: 0.5118 MB / 0.6192 GB, free: 7.434 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0195/0.5203, allocations: 17.1 MB / 0.6359 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002931/0.5232, allocations: 238.9 kB / 0.6362 GB, free: 5.602 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002428/0.5235, allocations: 124 kB / 0.6363 GB, free: 5.48 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00572/0.5292, allocations: 3.302 MB / 0.6395 GB, free: 2.172 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003776/0.533, allocations: 2.519 MB / 0.642 GB, free: 15.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006194/0.5392, allocations: 4.101 MB / 0.646 GB, free: 11.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.004e-05/0.5393, allocations: 4 kB / 0.646 GB, free: 11.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=401) (initialization_lambda0): time 0.009357/0.5486, allocations: 5.361 MB / 0.6512 GB, free: 5.734 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.5487, allocations: 52.34 kB / 0.6513 GB, free: 5.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.5487, allocations: 22.53 kB / 0.6513 GB, free: 5.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003071/0.5518, allocations: 1.429 MB / 0.6527 GB, free: 4.219 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/0.5537, allocations: 0.5079 MB / 0.6532 GB, free: 3.746 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/0.574, allocations: 17.1 MB / 0.6699 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/0.577, allocations: 263.8 kB / 0.6701 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002345/0.5773, allocations: 124 kB / 0.6702 GB, free: 1.77 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 57 (pwm.zeroOrderHold.firstTrigger,$PRE.pwm.zeroOrderHold.firstTrigger,pwm.zeroOrderHold.sampleTrigger,$whenCondition2,pwm.zeroOrderHold.ySample,pwm.triangle.count,$PRE.pwm.triangle.count,pwm.triangle.T_start,$PRE.pwm.triangle.T_start,$PRE.pwm.zeroOrderHold.ySample,pwm.notFire,electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],inverter.diode_n.idealDiode[5].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[1].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.diode_p.idealDiode[5].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[1].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[1].off,inverter.andCondition_n[5].y,inverter.andCondition_n[4].y,inverter.andCondition_n[3].y,inverter.andCondition_n[2].y,inverter.andCondition_n[1].y,inverter.andCondition_p[5].y,inverter.andCondition_p[4].y,inverter.andCondition_p[3].y,inverter.andCondition_p[2].y,inverter.andCondition_p[1].y,hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(13,49), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0007419/0.578, allocations: 420.7 kB / 0.6706 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005647/0.5786, allocations: 383.3 kB / 0.671 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009348/0.5879, allocations: 5.272 MB / 0.6762 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.67e-05/0.588, allocations: 19.94 kB / 0.6762 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.588, allocations: 0 / 0.6762 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/0.5894, allocations: 0.8712 MB / 0.677 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004974/0.5899, allocations: 59.06 kB / 0.6771 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/0.5918, allocations: 195.8 kB / 0.6773 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007689/0.5925, allocations: 393.8 kB / 0.6777 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0117/0.6043, allocations: 5.802 MB / 0.6833 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009896/0.6142, allocations: 6.38 MB / 0.6895 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003025/0.6172, allocations: 2.021 MB / 0.6915 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003083/0.6203, allocations: 2.34 MB / 0.6938 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of Backend: time 3.51e-07/0.6203, allocations: 4 kB / 0.6938 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01259/0.6329, allocations: 7.598 MB / 0.7012 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of SimCode: time 0.1697/0.8026, allocations: 10.88 MB / 0.7119 GB, free: 193.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1056/0.9082, allocations: 96.81 MB / 0.8064 GB, free: 112.9 MB / 0.5294 GB make -j1 -f BLDC_BLDC.Examples.DemoBLDCwithPWM.makefile (rm -f BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe ; mkfifo BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe >> ../files/BLDC_BLDC.Examples.DemoBLDCwithPWM.sim & ./BLDC_BLDC.Examples.DemoBLDCwithPWM -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe 2>&1)