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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 110.4 kB / 16.42 MB, free: 6.512 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.00111/0.00111, allocations: 185.5 kB / 17.35 MB, free: 5.738 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.239/1.239, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.0122/0.0122, allocations: 2.585 MB / 293.8 MB, free: 12.2 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 87.86 kB / 406 MB, free: 29.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06862/0.07027, allocations: 50.02 MB / 456 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.006049/0.07634, allocations: 5.675 MB / 461.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002752/0.07911, allocations: 1.92 MB / 463.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.07943, allocations: 39.81 kB / 463.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005009/0.07995, allocations: 274 kB / 463.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001406/0.08137, allocations: 0.7502 MB / 464.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.0818, allocations: 291.6 kB / 465 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002556/0.08437, allocations: 3.162 MB / 468.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002226/0.08661, allocations: 2.494 MB / 470.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.0878, allocations: 1.398 MB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001502/0.08931, allocations: 1.643 MB / 473.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003864/0.08971, allocations: 388 kB / 474.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006045/0.09032, allocations: 471.9 kB / 474.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008297/0.09116, allocations: 1.083 MB / 475.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.09256, allocations: 1.688 MB / 477.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003636/0.09621, allocations: 5.04 MB / 482.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.09622, allocations: 4 kB / 482.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09623, allocations: 0 / 482.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.603e-05/0.09627, allocations: 0 / 482.3 MB, free: 1.039 MB / 350.1 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.006293/0.1026, allocations: 3.632 MB / 486 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1026, allocations: 8.031 kB / 486 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005061/0.1031, allocations: 321.1 kB / 486.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/0.1056, allocations: 1.905 MB / 488.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.1057, allocations: 176.8 kB / 488.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003234/0.1061, allocations: 232 kB / 488.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005646/0.1117, allocations: 3.747 MB / 492.3 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.99e-05/0.1118, allocations: 3.938 kB / 492.3 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002266/0.112, allocations: 100 kB / 492.4 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.1121, allocations: 116.7 kB / 492.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00581/0.118, allocations: 3.578 MB / 496.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.1327, allocations: 11.5 MB / 0.4957 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004727/0.1374, allocations: 2.905 MB / 0.4986 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002571/0.14, allocations: 1.665 MB / 0.5002 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.1402, allocations: 107.1 kB / 0.5003 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.1402, allocations: 52.56 kB / 0.5004 GB, free: 2.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=169): time 3.387e-06/0.1402, allocations: 0 / 0.5004 GB, free: 2.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=169): time 0.1745/0.3147, allocations: 6.127 MB / 0.5063 GB, free: 51.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.3148, allocations: 68.84 kB / 0.5064 GB, free: 51.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.3173, allocations: 2.116 MB / 0.5085 GB, free: 50.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.3175, allocations: 52.52 kB / 0.5085 GB, free: 50.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000565/0.318, allocations: 1.074 MB / 0.5096 GB, free: 49.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003027/0.3183, allocations: 0.5022 MB / 0.5101 GB, free: 49.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004918/0.3188, allocations: 367.8 kB / 0.5104 GB, free: 49.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.218e-05/0.3189, allocations: 305.1 kB / 0.5107 GB, free: 49.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.3206, allocations: 1.038 MB / 0.5117 GB, free: 48.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/0.3226, allocations: 1.413 MB / 0.5131 GB, free: 47.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003163/0.3258, allocations: 2.312 MB / 0.5153 GB, free: 46.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.3258, allocations: 3.094 kB / 0.5154 GB, free: 46.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.00477/0.3306, allocations: 3.297 MB / 0.5186 GB, free: 45.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3306, allocations: 7.906 kB / 0.5186 GB, free: 45.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.3307, allocations: 11.78 kB / 0.5186 GB, free: 45.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002145/0.3328, allocations: 1.242 MB / 0.5198 GB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006975/0.3335, allocations: 214.2 kB / 0.52 GB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/0.3471, allocations: 17.1 MB / 0.5367 GB, free: 29.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.3483, allocations: 249.9 kB / 0.5369 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.3484, allocations: 71.98 kB / 0.537 GB, free: 29.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 45 (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,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],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(4,13), (4,13), (4,13), (4,13), (4,13)} Notification: Performance of prepare postOptimizeDAE: time 0.001051/0.3495, allocations: 1.001 MB / 0.538 GB, free: 28.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.3498, allocations: 217.4 kB / 0.5382 GB, free: 28.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004892/0.3547, allocations: 3.396 MB / 0.5415 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.3547, allocations: 11.95 kB / 0.5415 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3547, allocations: 4 kB / 0.5415 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006624/0.3554, allocations: 0.5761 MB / 0.5421 GB, free: 24.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002524/0.3556, allocations: 28 kB / 0.5421 GB, free: 24.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.3567, allocations: 135.8 kB / 0.5423 GB, free: 24.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004928/0.3572, allocations: 289.5 kB / 0.5425 GB, free: 23.83 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006267/0.3634, allocations: 3.706 MB / 0.5461 GB, free: 20.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004961/0.3684, allocations: 4.028 MB / 0.5501 GB, free: 16.1 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001538/0.37, allocations: 1.253 MB / 0.5513 GB, free: 14.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.3714, allocations: 1.461 MB / 0.5527 GB, free: 13.36 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.3714, allocations: 0 / 0.5527 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003865/0.3753, allocations: 2.723 MB / 0.5554 GB, free: 10.59 MB / 382.1 MB Notification: Performance of SimCode: time 0.005919/0.3812, allocations: 5.919 MB / 0.5612 GB, free: 4.664 MB / 382.1 MB Notification: Performance of Templates: time 0.06084/0.442, allocations: 47.61 MB / 0.6077 GB, free: 5.402 MB / 430.1 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)