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.0012/0.0012, allocations: 113 kB / 16.42 MB, free: 6.445 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.001167/0.001167, allocations: 185.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.24/1.24, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01765/0.01765, allocations: 2.593 MB / 293.8 MB, free: 12.2 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 95.86 kB / 406 MB, free: 29.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06627/0.06785, allocations: 50.02 MB / 456 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.004831/0.07272, allocations: 4.202 MB / 460.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.07517, allocations: 1.714 MB / 462 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.07545, allocations: 23.88 kB / 462 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.07576, allocations: 138.5 kB / 462.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000681/0.07645, allocations: 278.2 kB / 462.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006532/0.07711, allocations: 483.2 kB / 462.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.07841, allocations: 1.344 MB / 464.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006637/0.07909, allocations: 0.5748 MB / 464.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004832/0.07958, allocations: 0.5216 MB / 465.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.08013, allocations: 0.564 MB / 465.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.08029, allocations: 112 kB / 466 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002676/0.08056, allocations: 175.9 kB / 466.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002927/0.08086, allocations: 358.9 kB / 466.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004515/0.08132, allocations: 0.5867 MB / 467.1 MB, free: 492 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.0824, allocations: 1.351 MB / 468.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.08242, allocations: 4 kB / 468.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.08242, allocations: 0 / 468.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.08244, allocations: 0 / 468.4 MB, free: 15.12 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.002777/0.08522, allocations: 1.657 MB / 470.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.08526, allocations: 8.031 kB / 470.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008125/0.08608, allocations: 191.2 kB / 470.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.0872, allocations: 0.7999 MB / 471.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.375e-05/0.08726, allocations: 78.38 kB / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.08743, allocations: 112.4 kB / 471.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.08965, allocations: 1.308 MB / 472.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.08968, allocations: 0 / 472.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.08981, allocations: 67.94 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.015e-05/0.08986, allocations: 49.94 kB / 472.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002177/0.09204, allocations: 1.03 MB / 473.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004321/0.09638, allocations: 3.343 MB / 477.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.0981, allocations: 0.9354 MB / 478 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.09919, allocations: 0.5869 MB / 478.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001485/0.09935, allocations: 174.8 kB / 478.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001663/0.101, allocations: 1.114 MB / 479.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.124e-06/0.101, allocations: 0 / 479.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=109): time 0.006299/0.1073, allocations: 3.322 MB / 483.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.1075, allocations: 444.2 kB / 483.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008931/0.1084, allocations: 0.829 MB / 484.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.1085, allocations: 77.67 kB / 484.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/0.1089, allocations: 492.3 kB / 485 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.1091, allocations: 300 kB / 485.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003075/0.1094, allocations: 267.5 kB / 485.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.962e-05/0.1095, allocations: 301.1 kB / 485.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/0.1102, allocations: 407.8 kB / 486.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.1113, allocations: 0.8232 MB / 487.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.1128, allocations: 1.196 MB / 488.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.1128, allocations: 4 kB / 488.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002097/0.1149, allocations: 1.411 MB / 489.7 MB, free: 8.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/0.115, allocations: 101 kB / 489.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.78e-05/0.115, allocations: 8 kB / 489.8 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/0.1151, allocations: 20 kB / 489.8 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006498/0.1157, allocations: 208.2 kB / 490 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.825e-05/0.1158, allocations: 20.09 kB / 490.1 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006954/0.1165, allocations: 123.8 kB / 490.2 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/0.1165, allocations: 63.97 kB / 490.2 MB, free: 8.352 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.0005332/0.1171, allocations: 471.5 kB / 490.7 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.1173, allocations: 122.6 kB / 490.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.1202, allocations: 1.527 MB / 492.3 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.1202, allocations: 3.984 kB / 492.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1202, allocations: 0 / 492.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004273/0.1206, allocations: 291.6 kB / 492.6 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002167/0.1209, allocations: 59.98 kB / 492.7 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007916/0.1217, allocations: 123.8 kB / 492.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.1219, allocations: 124.8 kB / 492.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003245/0.1252, allocations: 1.698 MB / 494.6 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004188/0.1294, allocations: 2.342 MB / 497 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001313/0.1307, allocations: 0.8785 MB / 497.9 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006225/0.1313, allocations: 0.5536 MB / 498.4 MB, free: 36 kB / 366.1 MB Notification: Performance of Backend: time 5.31e-07/0.1313, allocations: 0 / 498.4 MB, free: 36 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.1331, allocations: 1.043 MB / 499.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of SimCode: time 0.002909/0.136, allocations: 2.51 MB / 0.4902 GB, free: 12.36 MB / 382.1 MB Notification: Performance of Templates: time 0.178/0.314, allocations: 14.6 MB / 0.5045 GB, free: 52.84 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)