Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoBLDC.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.DemoBLDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=399998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDC") translateModel(BLDC.Examples.DemoBLDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=399998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 115.9 kB / 16.42 MB, free: 6.488 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.001175/0.001175, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.233/1.233, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01212/0.01212, allocations: 2.59 MB / 293.8 MB, free: 12.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 91.84 kB / 406 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07011/0.07175, allocations: 50.03 MB / 456 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDC): time 0.01649/0.08826, allocations: 17.06 MB / 473.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008752/0.09704, allocations: 5.923 MB / 479 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.09821, allocations: 111.5 kB / 479.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.1005, allocations: 1.277 MB / 480.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002895/0.1035, allocations: 1.577 MB / 482 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.1053, allocations: 1.058 MB / 483 MB, free: 348 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005689/0.111, allocations: 6.665 MB / 489.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005079/0.1161, allocations: 5.471 MB / 495.2 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.119, allocations: 2.917 MB / 498.1 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003142/0.1221, allocations: 3.367 MB / 0.4897 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008295/0.1229, allocations: 0.8281 MB / 0.4905 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.1244, allocations: 1.058 MB / 0.4916 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001457/0.1259, allocations: 2.022 MB / 0.4935 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003001/0.1289, allocations: 3.567 MB / 0.497 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.18/0.3089, allocations: 10.96 MB / 0.5077 GB, free: 23.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3089, allocations: 3.812 kB / 0.5077 GB, free: 23.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3089, allocations: 0 / 0.5077 GB, free: 23.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003165/0.3092, allocations: 0 / 0.5077 GB, free: 23.28 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: 1396 * Number of variables: 1396 Notification: Performance of Generate backend data structure: time 0.01845/0.3277, allocations: 7.114 MB / 0.5147 GB, free: 20.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.3278, allocations: 9.75 kB / 0.5147 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004287/0.3321, allocations: 1.009 MB / 0.5157 GB, free: 20.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005489/0.3376, allocations: 3.748 MB / 0.5193 GB, free: 19.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.3378, allocations: 393.6 kB / 0.5197 GB, free: 19.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007391/0.3385, allocations: 0.5186 MB / 0.5202 GB, free: 19.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.3495, allocations: 7.668 MB / 0.5277 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.353e-05/0.3496, allocations: 6.875 kB / 0.5277 GB, free: 16.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004944/0.3501, allocations: 223.6 kB / 0.5279 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00017/0.3502, allocations: 257.8 kB / 0.5282 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00921/0.3595, allocations: 6.861 MB / 0.5349 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02734/0.3868, allocations: 23.18 MB / 0.5575 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008204/0.395, allocations: 5.841 MB / 0.5632 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004014/0.3991, allocations: 2.85 MB / 0.566 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/0.4114, allocations: 8.326 MB / 0.5741 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003523/0.415, allocations: 2.368 MB / 0.5764 GB, free: 3.938 MB / 414.1 MB Notification: Performance of pre-optimization done (n=316): time 4.038e-06/0.415, allocations: 0 / 0.5764 GB, free: 3.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=320): time 0.05223/0.4672, allocations: 20.9 MB / 0.5968 GB, free: 14.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.4674, allocations: 343 kB / 0.5972 GB, free: 14.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/0.4716, allocations: 3.277 MB / 0.6004 GB, free: 11.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003154/0.4719, allocations: 105.7 kB / 0.6005 GB, free: 11.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001769/0.4737, allocations: 2.273 MB / 0.6027 GB, free: 8.793 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008696/0.4746, allocations: 0.9967 MB / 0.6037 GB, free: 7.809 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009821/0.4755, allocations: 0.6441 MB / 0.6043 GB, free: 7.156 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.4757, allocations: 301.1 kB / 0.6046 GB, free: 6.859 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/0.4788, allocations: 1.813 MB / 0.6063 GB, free: 5.047 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003677/0.4825, allocations: 2.618 MB / 0.6089 GB, free: 2.141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005985/0.4885, allocations: 4.215 MB / 0.613 GB, free: 13.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.4885, allocations: 8 kB / 0.613 GB, free: 13.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.008909/0.4974, allocations: 5.521 MB / 0.6184 GB, free: 8.242 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.4975, allocations: 16 kB / 0.6184 GB, free: 8.227 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.4975, allocations: 16.66 kB / 0.6184 GB, free: 8.211 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002933/0.5005, allocations: 1.429 MB / 0.6198 GB, free: 6.773 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/0.5023, allocations: 0.5186 MB / 0.6203 GB, free: 6.293 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/0.5217, allocations: 17.08 MB / 0.637 GB, free: 4.715 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002845/0.5245, allocations: 219.5 kB / 0.6372 GB, free: 4.504 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/0.5248, allocations: 132 kB / 0.6374 GB, free: 4.375 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * Number of states: 0 () * Number of discrete variables: 84 (triggeredMeanDC.t0,$PRE.triggeredMeanDC.t0,triggeredMeanDC.y_last,$PRE.triggeredMeanDC.y_last,triggeredMeanAC.t0,$PRE.triggeredMeanAC.t0,triggeredMeanAC.y_last,$PRE.triggeredMeanAC.y_last,triggeredMeanAC.trigger,$PRE.triggeredMeanAC.trigger,measurementTrigger.fallingEdge[5].not_u,$PRE.measurementTrigger.fallingEdge[5].not_u,measurementTrigger.fallingEdge[5].y,measurementTrigger.fallingEdge[4].not_u,$PRE.measurementTrigger.fallingEdge[4].not_u,measurementTrigger.fallingEdge[4].y,measurementTrigger.fallingEdge[3].not_u,$PRE.measurementTrigger.fallingEdge[3].not_u,measurementTrigger.fallingEdge[3].y,measurementTrigger.fallingEdge[2].not_u,$PRE.measurementTrigger.fallingEdge[2].not_u,measurementTrigger.fallingEdge[2].y,measurementTrigger.fallingEdge[1].not_u,$PRE.measurementTrigger.fallingEdge[1].not_u,measurementTrigger.fallingEdge[1].y,measurementTrigger.risingEdge[5].y,measurementTrigger.risingEdge[5].u,$PRE.measurementTrigger.risingEdge[5].u,measurementTrigger.risingEdge[4].y,measurementTrigger.risingEdge[4].u,$PRE.measurementTrigger.risingEdge[4].u,measurementTrigger.risingEdge[3].y,measurementTrigger.risingEdge[3].u,$PRE.measurementTrigger.risingEdge[3].u,measurementTrigger.risingEdge[2].y,measurementTrigger.risingEdge[2].u,$PRE.measurementTrigger.risingEdge[2].u,measurementTrigger.risingEdge[1].y,measurementTrigger.risingEdge[1].u,$PRE.measurementTrigger.risingEdge[1].u,triggeredMeanDC.trigger,$PRE.triggeredMeanDC.trigger,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,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (336): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * 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.002827/0.5277, allocations: 1.843 MB / 0.6392 GB, free: 2.559 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007391/0.5284, allocations: 382.3 kB / 0.6395 GB, free: 2.184 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009212/0.5376, allocations: 5.347 MB / 0.6447 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.952e-05/0.5377, allocations: 15.94 kB / 0.6448 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.5377, allocations: 4 kB / 0.6448 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/0.5394, allocations: 0.8713 MB / 0.6456 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/0.5399, allocations: 75.98 kB / 0.6457 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/0.5416, allocations: 179.8 kB / 0.6459 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000783/0.5424, allocations: 405.9 kB / 0.6462 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01145/0.5539, allocations: 5.868 MB / 0.652 GB, free: 5.387 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009986/0.5639, allocations: 6.505 MB / 0.6583 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00298/0.5669, allocations: 2.057 MB / 0.6603 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003028/0.5699, allocations: 2.229 MB / 0.6625 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of Backend: time 3.51e-07/0.5699, allocations: 0 / 0.6625 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007355/0.5773, allocations: 4.047 MB / 0.6665 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of SimCode: time 0.01567/0.593, allocations: 10.86 MB / 0.6771 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of Templates: time 0.2597/0.8527, allocations: 75.29 MB / 0.7506 GB, free: 170.2 MB / 0.5294 GB make -j1 -f BLDC_BLDC.Examples.DemoBLDC.makefile (rm -f BLDC_BLDC.Examples.DemoBLDC.pipe ; mkfifo BLDC_BLDC.Examples.DemoBLDC.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoBLDC.pipe >> ../files/BLDC_BLDC.Examples.DemoBLDC.sim & ./BLDC_BLDC.Examples.DemoBLDC -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoBLDC.pipe 2>&1)