Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoEncoder.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.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") translateModel(BLDC.Examples.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 112.7 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.001177/0.001177, allocations: 190.7 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.236/1.236, 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.01961/0.01961, allocations: 2.596 MB / 293.8 MB, free: 12.17 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 91.84 kB / 406 MB, free: 29.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06984/0.07149, allocations: 50.04 MB / 456.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.004933/0.07646, allocations: 4.206 MB / 460.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.07893, allocations: 1.703 MB / 462 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002774/0.07922, allocations: 23.88 kB / 462 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.07952, allocations: 134.5 kB / 462.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006923/0.08023, allocations: 278.2 kB / 462.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.0809, allocations: 483.2 kB / 462.9 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.08222, allocations: 1.348 MB / 464.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000661/0.08289, allocations: 0.5787 MB / 464.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004846/0.08338, allocations: 0.5216 MB / 465.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005361/0.08393, allocations: 0.5679 MB / 465.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.08407, allocations: 112 kB / 466 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.08432, allocations: 175.9 kB / 466.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003153/0.08464, allocations: 358.9 kB / 466.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004522/0.08511, allocations: 0.5789 MB / 467.1 MB, free: 348 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.0862, allocations: 1.347 MB / 468.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.08622, allocations: 0 / 468.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08622, allocations: 3.938 kB / 468.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.08624, allocations: 8 kB / 468.4 MB, free: 14.98 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: 238 * Number of variables: 238 Notification: Performance of Generate backend data structure: time 0.002779/0.08903, allocations: 1.653 MB / 470.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.08908, allocations: 16.03 kB / 470.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008332/0.08992, allocations: 191.2 kB / 470.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.09096, allocations: 0.7999 MB / 471.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.619e-05/0.09104, allocations: 86.36 kB / 471.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.0912, allocations: 100.4 kB / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.09346, allocations: 1.315 MB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.0935, allocations: 0 / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.09362, allocations: 63.94 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-05/0.09368, allocations: 42 kB / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002193/0.09588, allocations: 1.038 MB / 473.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004291/0.1002, allocations: 3.343 MB / 477.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001751/0.1019, allocations: 0.9315 MB / 478 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.1031, allocations: 0.5883 MB / 478.6 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.1032, allocations: 174.8 kB / 478.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001692/0.1049, allocations: 1.11 MB / 479.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.775e-06/0.1049, allocations: 0 / 479.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=109): time 0.006417/0.1114, allocations: 3.318 MB / 483.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/0.1115, allocations: 448.2 kB / 483.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008978/0.1125, allocations: 0.829 MB / 484.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.569e-05/0.1126, allocations: 77.67 kB / 484.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.1129, allocations: 488.2 kB / 485 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/0.1131, allocations: 308 kB / 485.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/0.1135, allocations: 259.5 kB / 485.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.294e-05/0.1135, allocations: 301.1 kB / 485.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000739/0.1143, allocations: 411.7 kB / 486.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000987/0.1153, allocations: 0.8193 MB / 487.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.1168, allocations: 1.2 MB / 488.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.1168, allocations: 0 / 488.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002098/0.1189, allocations: 1.419 MB / 489.7 MB, free: 8.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.761e-05/0.119, allocations: 101 kB / 489.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.119, allocations: 12 kB / 489.8 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.1191, allocations: 16 kB / 489.8 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/0.1197, allocations: 199.6 kB / 490 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.608e-05/0.1198, allocations: 23.94 kB / 490.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000708/0.1205, allocations: 131.9 kB / 490.2 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.902e-05/0.1206, allocations: 52 kB / 490.2 MB, free: 8.211 MB / 366.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: 111 (encoderTimeAndCount.t2,$PRE.encoderTimeAndCount.t2,encoderTimeAndCount.t1,$PRE.encoderTimeAndCount.t1,encoderTimeAndCount.firstEdge,$PRE.encoderTimeAndCount.firstEdge,encoderTimeAndCount.count,$PRE.encoderTimeAndCount.count,encoderPulseCount.count,$PRE.encoderPulseCount.count,hallTimeSpan.t0,$PRE.hallTimeSpan.t0,hallTimeSpan.firstEdge,$PRE.hallTimeSpan.firstEdge,encoderPulseCount.firstTrigger,$PRE.encoderPulseCount.firstTrigger,encoderTimeSpan.firstEdge,$PRE.encoderTimeSpan.firstEdge,encoderTimeSpan.t0,$PRE.encoderTimeSpan.t0,encoderTimeAndCount.firstTrigger,$PRE.encoderTimeAndCount.firstTrigger,refFrequency.count,$PRE.refFrequency.count,refFrequency.T_start,$PRE.refFrequency.T_start,$whenCondition1,encoderTimeAndCount.w,$PRE.encoderTimeAndCount.w,encoderTimeSpan.w,$PRE.encoderTimeSpan.w,encoderPulseCount.w,$PRE.encoderPulseCount.w,hallTimeSpan.notC[5],$PRE.hallTimeSpan.notC[5],hallTimeSpan.notC[4],$PRE.hallTimeSpan.notC[4],hallTimeSpan.notC[3],$PRE.hallTimeSpan.notC[3],hallTimeSpan.notC[2],$PRE.hallTimeSpan.notC[2],hallTimeSpan.notC[1],$PRE.hallTimeSpan.notC[1],hallTimeSpan.uC[5],$PRE.hallTimeSpan.uC[5],hallTimeSpan.uC[4],$PRE.hallTimeSpan.uC[4],hallTimeSpan.uC[3],$PRE.hallTimeSpan.uC[3],hallTimeSpan.uC[2],$PRE.hallTimeSpan.uC[2],hallTimeSpan.uC[1],$PRE.hallTimeSpan.uC[1],encoderPulseCount.notB,$PRE.encoderPulseCount.notB,encoderPulseCount.notA,$PRE.encoderPulseCount.notA,encoderPulseCount.B,$PRE.encoderPulseCount.B,encoderPulseCount.A,$PRE.encoderPulseCount.A,encoderPulseCount.sampleTrigger,encoderTimeSpan.notB,$PRE.encoderTimeSpan.notB,encoderTimeSpan.notA,$PRE.encoderTimeSpan.notA,encoderTimeSpan.B,$PRE.encoderTimeSpan.B,encoderTimeSpan.A,$PRE.encoderTimeSpan.A,encoderTimeAndCount.notB,$PRE.encoderTimeAndCount.notB,encoderTimeAndCount.notA,$PRE.encoderTimeAndCount.notA,encoderTimeAndCount.B,$PRE.encoderTimeAndCount.B,encoderTimeAndCount.A,$PRE.encoderTimeAndCount.A,encoderTimeAndCount.sampleTrigger,incrementalEncoder.y[1],$whenCondition27,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition22,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,hallTimeSpan.w,$PRE.hallTimeSpan.w,unwrapAngle.integralController.local_reset,sinCosEvaluation.integralController.local_reset,f2pos.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005245/0.1211, allocations: 471.5 kB / 490.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.1213, allocations: 114.7 kB / 490.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/0.1241, allocations: 1.535 MB / 492.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.1241, allocations: 3.984 kB / 492.3 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1241, allocations: 0 / 492.3 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003757/0.1245, allocations: 295.6 kB / 492.6 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.1247, allocations: 59.98 kB / 492.7 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007796/0.1255, allocations: 119.8 kB / 492.8 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.1258, allocations: 120.8 kB / 492.9 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003157/0.1289, allocations: 1.706 MB / 494.6 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004014/0.133, allocations: 2.335 MB / 497 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00126/0.1342, allocations: 0.8824 MB / 497.9 MB, free: 460 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000613/0.1349, allocations: 0.5536 MB / 498.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of Backend: time 7.51e-07/0.1349, allocations: 0 / 498.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.1366, allocations: 1.042 MB / 499.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of SimCode: time 0.002755/0.1393, allocations: 2.519 MB / 0.4902 GB, free: 12.22 MB / 382.1 MB Notification: Performance of Templates: time 0.1753/0.3147, allocations: 14.6 MB / 0.5045 GB, free: 52.77 MB / 382.1 MB make -j1 -f BLDC_BLDC.Examples.DemoEncoder.makefile (rm -f BLDC_BLDC.Examples.DemoEncoder.pipe ; mkfifo BLDC_BLDC.Examples.DemoEncoder.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoEncoder.pipe >> ../files/BLDC_BLDC.Examples.DemoEncoder.sim & ./BLDC_BLDC.Examples.DemoEncoder -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoEncoder.pipe 2>&1)