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.001237/0.001237, allocations: 121 kB / 16.42 MB, free: 6.473 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.001166/0.001166, allocations: 183.9 kB / 17.35 MB, free: 5.75 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.238/1.238, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01222/0.01222, allocations: 2.599 MB / 293.8 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 95.83 kB / 406 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06806/0.06965, allocations: 50.03 MB / 456 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.006208/0.07588, allocations: 5.671 MB / 461.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.07873, allocations: 1.913 MB / 463.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003233/0.07906, allocations: 39.81 kB / 463.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005108/0.0796, allocations: 281.9 kB / 463.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.08104, allocations: 0.7502 MB / 464.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004418/0.08149, allocations: 295.6 kB / 465 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002677/0.08418, allocations: 3.162 MB / 468.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002268/0.08646, allocations: 2.494 MB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.08782, allocations: 1.398 MB / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001602/0.08944, allocations: 1.647 MB / 473.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004452/0.0899, allocations: 392 kB / 474.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007119/0.09062, allocations: 468 kB / 474.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000811/0.09144, allocations: 1.075 MB / 475.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.09295, allocations: 1.688 MB / 477.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003847/0.0968, allocations: 5.048 MB / 482.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.09682, allocations: 0 / 482.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09682, allocations: 0 / 482.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.087e-05/0.09687, allocations: 0 / 482.3 MB, free: 1.004 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.006576/0.1034, allocations: 3.624 MB / 486 MB, free: 13.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1035, allocations: 16.03 kB / 486 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/0.104, allocations: 325 kB / 486.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002916/0.107, allocations: 1.905 MB / 488.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.1071, allocations: 184.8 kB / 488.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003147/0.1074, allocations: 220 kB / 488.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005558/0.113, allocations: 3.743 MB / 492.3 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.915e-05/0.113, allocations: 7.938 kB / 492.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.1133, allocations: 96 kB / 492.4 MB, free: 6.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.1134, allocations: 116.7 kB / 492.6 MB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005632/0.119, allocations: 3.582 MB / 496.1 MB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01521/0.1343, allocations: 11.5 MB / 0.4957 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004674/0.1389, allocations: 2.898 MB / 0.4986 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/0.1415, allocations: 1.665 MB / 0.5002 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001651/0.1416, allocations: 107.1 kB / 0.5003 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.1417, allocations: 56.59 kB / 0.5004 GB, free: 2.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=169): time 3.687e-06/0.1417, allocations: 0 / 0.5004 GB, free: 2.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=169): time 0.1764/0.3181, allocations: 6.119 MB / 0.5063 GB, free: 51.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.3182, allocations: 69.5 kB / 0.5064 GB, free: 51.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002562/0.3208, allocations: 2.122 MB / 0.5085 GB, free: 50.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.3209, allocations: 57.86 kB / 0.5085 GB, free: 50.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005949/0.3215, allocations: 1.074 MB / 0.5096 GB, free: 49.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003213/0.3218, allocations: 0.5008 MB / 0.5101 GB, free: 49.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004951/0.3223, allocations: 367.6 kB / 0.5104 GB, free: 49.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.192e-05/0.3223, allocations: 303.1 kB / 0.5107 GB, free: 49.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001756/0.3241, allocations: 1.035 MB / 0.5117 GB, free: 48.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001869/0.326, allocations: 1.416 MB / 0.5131 GB, free: 47.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003097/0.3291, allocations: 2.307 MB / 0.5153 GB, free: 46.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.3291, allocations: 2.75 kB / 0.5153 GB, free: 46.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004697/0.3338, allocations: 3.29 MB / 0.5186 GB, free: 45.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3338, allocations: 11.97 kB / 0.5186 GB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.3339, allocations: 11.84 kB / 0.5186 GB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/0.336, allocations: 1.252 MB / 0.5198 GB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/0.3367, allocations: 211.8 kB / 0.52 GB, free: 44.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/0.3497, allocations: 17.11 MB / 0.5367 GB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.351, allocations: 241.9 kB / 0.5369 GB, free: 29.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.3511, allocations: 71.98 kB / 0.537 GB, free: 29.44 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.001095/0.3522, allocations: 1.009 MB / 0.538 GB, free: 28.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/0.3525, allocations: 217.4 kB / 0.5382 GB, free: 28.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004679/0.3572, allocations: 3.39 MB / 0.5415 GB, free: 24.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.3572, allocations: 11.97 kB / 0.5415 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3572, allocations: 0 / 0.5415 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000895/0.3581, allocations: 0.5808 MB / 0.5421 GB, free: 24.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000252/0.3584, allocations: 28 kB / 0.5421 GB, free: 24.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.3595, allocations: 131.8 kB / 0.5422 GB, free: 24.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004695/0.3599, allocations: 289.5 kB / 0.5425 GB, free: 23.75 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005916/0.3659, allocations: 3.721 MB / 0.5462 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004689/0.3706, allocations: 4.02 MB / 0.5501 GB, free: 16.02 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001431/0.372, allocations: 1.257 MB / 0.5513 GB, free: 14.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.3734, allocations: 1.461 MB / 0.5527 GB, free: 13.27 MB / 382.1 MB Notification: Performance of Backend: time 2.81e-07/0.3734, allocations: 0 / 0.5527 GB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.3772, allocations: 2.721 MB / 0.5554 GB, free: 10.5 MB / 382.1 MB Notification: Performance of SimCode: time 0.006001/0.3832, allocations: 5.925 MB / 0.5612 GB, free: 4.566 MB / 382.1 MB Notification: Performance of Templates: time 0.06306/0.4463, allocations: 47.61 MB / 0.6077 GB, free: 5.305 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)